handle-startup-state
Installation
SKILL.md
Handle Startup State
Reads the optional initialState string returned by connectToHostApp()
and restores it before first render, so the app opens directly into the
right view instead of always starting from defaults.
Requires @cognite/app-sdk's connectToHostApp() handshake already wired
up. If auth isn't wired up yet, run the
setup-flows-auth skill first.
What initialState actually is
initialState is a single opaque string, present on the object returned
by connectToHostApp():
const { api, initialState } = await connectToHostApp();