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.cleanupso that the
stopbutton can clear the interval with
clearInterval(). For that, add
noSerializeimport from '@builder.io/qwik' and use
noSerializefunction to wrap clearInterval function.