Skip to content

Shared state

Three small examples show where state lives in Fleury: a local counter, a project shared through a subtree, and a cart shared with application code.

Change the project or add an item and watch builder widgets and context readers update together. The state-management guide walks through each API; the sample source puts them in one app.

Try it: Increment changes local state. Switch project updates both scope readers. Add item updates both readers of the shared cart.

Live · interactive
click & type to interact ⓘ how this demo runs

Inputs & controls

Layout

All showcases