[GH-ISSUE #2363] [bug]: EnvInput causes restSession to be rendered twice #806

Open
opened 2026-03-16 17:15:59 +03:00 by kerem · 2 comments
Owner

Originally created by @insub on GitHub (May 24, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2363

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

when select another request, the code below will cause the restSession to be rendered twice:

../components/smart/EnvInput.vue

view.value?.dispatch({
  filter: false,
  changes: {
    from: 0,
    to: view.value.state.doc.length,
    insert: singleLinedText,
  },
})

will trigger /newstore/RESTSession.ts -> setRESTEndpoint function then restRession will render again.
PS: is the endpoint of the previous request was not "https://echo.hoppscotch.io"

Steps to reproduce

  1. open a request (make sure the request's endpoint was not "https://echo.hoppscotch.io")
  2. open another request

Environment

Release

Version

Local

Originally created by @insub on GitHub (May 24, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2363 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current behavior when select another request, the code below will cause the restSession to be rendered twice: ../components/smart/EnvInput.vue ``` view.value?.dispatch({ filter: false, changes: { from: 0, to: view.value.state.doc.length, insert: singleLinedText, }, }) ``` will trigger /newstore/RESTSession.ts -> setRESTEndpoint function then restRession will render again. PS: is the endpoint of the previous request was not "https://echo.hoppscotch.io" ### Steps to reproduce 1. open a request (make sure the request's endpoint was not "https://echo.hoppscotch.io") 2. open another request ### Environment Release ### Version Local
Author
Owner

@AndrewBastin commented on GitHub (May 24, 2022):

Are there any usage concerns (like a bug or a glitchy behavior) that may arise from this issue ?

<!-- gh-comment-id:1135632012 --> @AndrewBastin commented on GitHub (May 24, 2022): Are there any usage concerns (like a bug or a glitchy behavior) that may arise from this issue ?
Author
Owner

@insub commented on GitHub (May 24, 2022):

@AndrewBastin no, but it can be perceived in the user experience,slight delay

<!-- gh-comment-id:1135683353 --> @insub commented on GitHub (May 24, 2022): @AndrewBastin no, but it can be perceived in the user experience,slight delay
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#806
No description provided.