[ ocknamo/nosskey-sdk ] fix(svelte-app): initialize screen from hash before store subscribe (#20)
currentScreen defaults to 'account', so the synchronous initial emit from
`currentScreen.subscribe(updateHash)` rewrote `window.location.hash` from
`#/iframe` to `#/account` before `$effect` could read the original hash.
As a result, `IframeHostScreen` never mounted when the iframe was loaded
at ` `nosskey:ready` was never posted, and
the parent stayed stuck on "connecting".
Read the hash synchronously before subscribing so the initial emit matches

Nosskey
GitHub
fix(svelte-app): initialize screen from hash before store subscribe (… · ocknamo/nosskey-sdk@a472ee9
…#20)
currentScreen defaults to 'account', so the synchronous initial emit from
`currentScreen.subscribe(updateHash)` rewrote `window.lo...