Classy Store

Collections

Add users to a reactive map and tags to a reactive set. Watch their entries and counts update.

Reactive Collections

reactiveMap() and reactiveSet() provide Map/Set semantics that the proxy can track.

ReactiveMap — Users (2)
renders: 1
  • Aliceadmin
  • Bobviewer
ReactiveSet — Tags (2)
renders: 1
urgentbug
Computed (getter)
2 users · 2 tags
renders: 1

Create collections with reactiveMap() and reactiveSet() so the store can observe mutations.

On this page