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
If I'm using persisters/persister-partykit-server, can I set the initial state of a store and monitor/update on the PartyKit server?
I've extended TinyBasePartyKitServer with my own event handlers and would like to initially set data there and then have the persister sync it across connected clients.
I have a sample implementation here, but I don't see a way to control the store that is being persisted:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I'm using
persisters/persister-partykit-server
, can I set the initial state of a store and monitor/update on the PartyKit server?I've extended
TinyBasePartyKitServer
with my own event handlers and would like to initially set data there and then have the persister sync it across connected clients.I have a sample implementation here, but I don't see a way to control the store that is being persisted:
https://github.com/jschuur/tinybase-partykit-test/blob/main/party/server.ts
I realise this goes against the 'local first' nature of TinyBase.
Beta Was this translation helpful? Give feedback.
All reactions