From da5e7fdde5973cd5c863e98a1635a0074491f59d Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Fri, 31 Dec 2021 21:30:52 +0530 Subject: [PATCH] fix: codemirror cache value didnt update when the view is not mounted --- packages/hoppscotch-app/helpers/editor/codemirror.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/hoppscotch-app/helpers/editor/codemirror.ts b/packages/hoppscotch-app/helpers/editor/codemirror.ts index 35502b244..caac52e61 100644 --- a/packages/hoppscotch-app/helpers/editor/codemirror.ts +++ b/packages/hoppscotch-app/helpers/editor/codemirror.ts @@ -281,6 +281,7 @@ export function useCodemirror( }, }) } + cachedValue.value = newVal }) watch(