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.
Edit TutorialYour task: Add a cleanup function in
store.cleanup
so that thestop
button can clear the interval withclearInterval()
. For that, addnoSerialize
import from '@qwik.dev/core' and usenoSerialize
function to wrap clearInterval function.