-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Starred goals are currently stored as react state on the client. This means it’s lost on refresh and cannot be (easily) synced across multiple windows or persisted in the event of a server crash, restart, or the room being incorrectly closed.
With the recent changes to treat players as first class objects on the server and serialize them in the database, we should move this information to the server, storing the data locally in the player instance and serializing it to the database alongside the rest of the player data. This data should not be sent to other players, and should only be appended to messages being sent out to the player they belong to.
This may be a good opportunity to additionally fix #111 as it is much easier to detect and react to these events on the server than it is on the client.