Classy Store

Reactivity

Use selectors to isolate renders, compare individual updates with a batched update, and fetch posts asynchronously.

Reactive Fundamentals

Change a channel to watch its subscribers update. The batch control uses its own counter.

Count 0
Count
0
renders: 1
Name
World
renders: 1
renders: 1
Batch 0renders: 1

Async Data Fetching

Loading and result subscribers update on either side of the asynchronous request.

Loading
Idle
renders: 1
Error
None
renders: 1
Posts
renders: 1

No posts loaded. Click "Fetch Posts" to load.

Count: 0renders: 1

Use a selector to subscribe to one field. Changing the name leaves the count subscriber alone.

On this page