insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Git checkout branch, pull and reset operations don't update the spec editor properly

Open develohpanda opened this issue 4 years ago • 1 comments

Related to #2224, which fixes this case for checking out a branch, but a more robust solution is needed for other git cases which will show the same behavior.

Possibly use react context to trigger different sections of the application to update on git operations, and to share the gitVCS object.

The current workaround is to force an update, by going to the dashboard and opening the document again.

develohpanda avatar Jun 03 '20 05:06 develohpanda

While triaging this with @kreosus we found this issue is still applicable. We also noticed something:

When pulling a branch, it seems we do update the Preview of a spec according to the branch: For example, pulling one branch with changes: 002

And pulling back the main branch: 001

Perhaps this can be solved somehow applying the same update we are doing already for Preview inside the code editor.

filfreire avatar Jun 23 '22 13:06 filfreire