Closed thanhnguyen2187 closed 1 month ago
Take a look at .subscribe of Triplit: https://www.triplit.dev/docs/client/subscribe
.subscribe
This requires a better structuring of the global state machine, as right now, it is reflecting the states, not actually drives them (look at src/routes/(layout-default)/+page.svelte.
src/routes/(layout-default)/+page.svelte
Take a look at
.subscribe
of Triplit: https://www.triplit.dev/docs/client/subscribe