Skip to content

Send back all data from server. #64

Description

@ronanyeah

Your reducers are manually keeping in sync with the database using filter etc. This is not scalable. Every time you change the database, send back all the posts and set that as the state. This might seem excessive but its much easier to manage. Make sure to use the database ids as component keys so react knows what to render and remove.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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