([])
+ let ncontext: any = { ...context, workspace, mode: 'viewer' }
+
+ function hashchange(e: HashChangeEvent) {
+ ncontext.hash = e.newURL.split('#')[1]
+ ncontext = ncontext
+ }
+
const parentWidth = writable(0)
setContext
('AppViewerContext', {
- worldStore: buildWorld(context),
+ worldStore: buildWorld(ncontext),
initialized: writable({ initialized: false, initializedComponents: [] }),
app: appStore,
summary: writable(summary),
@@ -77,13 +84,6 @@
allIdsInPath
})
- let ncontext: any = { ...context, workspace }
-
- function hashchange(e: HashChangeEvent) {
- ncontext.hash = e.newURL.split('#')[1]
- ncontext = ncontext
- }
-
let previousSelectedIds: string[] | undefined = undefined
$: if (!deepEqual(previousSelectedIds, $selectedComponent)) {
previousSelectedIds = $selectedComponent