feat(desktop): persist currentSidecarUrl in state when isSidecar prop is true (#12792)
This commit is contained in:
@@ -105,12 +105,11 @@ export const { use: useServer, provider: ServerProvider } = createSimpleContext(
|
|||||||
// Add the new sidecar url
|
// Add the new sidecar url
|
||||||
if (props.isSidecar && props.defaultUrl) {
|
if (props.isSidecar && props.defaultUrl) {
|
||||||
add(props.defaultUrl)
|
add(props.defaultUrl)
|
||||||
|
setStore("currentSidecarUrl", props.defaultUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
setState("active", url)
|
setState("active", url)
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(store.list)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const isReady = createMemo(() => ready() && !!state.active)
|
const isReady = createMemo(() => ready() && !!state.active)
|
||||||
|
|||||||
Reference in New Issue
Block a user