In that case, you can use useSyncExternalStore to subscribe to that data store.
useSyncExternalStore returns the current snapshot of the external data you're subscribed to.
[
add
]
[
|
|
...
]
In that case, you can use useSyncExternalStore to subscribe to that data store.
useSyncExternalStore returns the current snapshot of the external data you're subscribed to.