Edit tutorial

Serialization Graph

Stores are serializable as the application is paused on the server and resumed on the client.

Data in a store isn't required to be free of nested references. Qwik is perfectly happy serializing stores that feature data cycles.

Stores can also include Qwik URLs (QRLs).

There is no limit to how many stores can be created per component, nor to where they are passed. While the best practice is to implement top-down data flows, Qwik doesn't require this design philosophy.

Your task: Insert a few items into parent.children to create a circular reference between the parent and child stores.

This example also shows how to attach and invoke closures to a store using $ and QRL.

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.