Edit tutorial

Non-serializable Properties

Stores must always be serializable, however sometimes you may want to persist a value on a store that can't be serialized. Values like these persist in the browser only when the application is resumed on the client.

When the application is paused, non-serializable properties are discarded.

Your task: Add a cleanup function in store.cleanup so that the stop button can clear the interval with clearInterval(). For that, add noSerialize import from '@qwik.dev/core' and use noSerialize function to wrap clearInterval function.

Building preview

Refreshing App output

Compiling the latest client and SSR result for your current code.

No console activity yet

Interact with the app or trigger a render to see client and SSR messages here.