Skip to content

Redux: synchronizing state among many users #18

Description

@danburzo

When building a React/Redux application that contains an amount state that is shared between many users, what is a good approach to synchronize the state so that when user A does action X, user B's state also updates to reflect the action, without having to refresh the app?

I'm thinking something along the lines of a Redux middleware that intercepts all actions and passes them over via Web Sockets to all the subscribed users. On the receiving end, we listen on the connection and dispatch the actions as they come -- I wonder if there's a library that deals specifically with this, and might have some extra subtlety implemented around dealing with 'conflicting' actions, etc.

Metadata

Metadata

Assignees

No one assigned

    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