Skip to content

Fire the event listeners for state changes when updating locally with setState, rather than only when COGS responds #19

@tomdixon

Description

@tomdixon

Currently, if…

  • you have some state which is both writableByCogs and writableByClient
  • you use useCogsStateValue to use the state in a React component
  • you then update it with connection.setState

… then you will not get a re-render until the server responds with the updated state.

We should fire the event listeners for state changes when updating with setState, rather than only when COGS responds

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions