Following the data scope bug I fixed yesterday, I just added a new feature to Kitten to make this sort of bug more difficult to introduce into your apps.
Introducing: page storage (server-side, ephemeral page-scoped data).
This is available only for the Streaming HTML workflow and the scope is shared between your page route and on your onConnect() handler. It’s great if you want state per page instead of per session, etc.
New data scopes docs: https://kitten.small-web.org/reference/#data-scopes