You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useStore(matchStore, (match) =>/* select from one match */)
88
92
```
89
93
94
+
> [!NOTE]
95
+
> `getMatchStoreByRouteId` creates a derived signal on demand, and stores it
96
+
> in a Least-Recently-Used cache so it can be reused by other subscribers
97
+
> without leaking memory.
98
+
90
99
The store-update-count graphs below show the before/after change within each adapter. Absolute counts are not directly comparable across frameworks, because React, Solid, and Vue do not propagate updates in exactly the same way.
91
100
92
101
<!-- ::start:tabs -->
@@ -140,6 +149,10 @@ export type StoreConfig = {
140
149
141
150
This keeps one router core while letting each adapter plug in the store model it wants.
142
151
152
+
> [!NOTE]
153
+
> Solid's derived stores are backed by native memos, and the adapter uses a `FinalizationRegistry`
154
+
> to dispose detached roots when those stores are garbage-collected.
155
+
143
156
## Observable Result: Less Work During Navigation
144
157
145
158
No new public API is required here. `useMatch`, `useLocation`, and `<Link>` keep the same surface. The difference is that navigation and preload flows now wake up fewer subscriptions.
0 commit comments