Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[RFC]Let's Document: How to normalize data using Rematch? #533
Comments
|
The Redux docs provide some best practices: Normalizing State Shape & Updating Normalized Data. |
|
I tote this example around a lot: https://codesandbox.io/s/ql6m574l84 This uses normalizr and reselect (@rematch/select) to closely follow the links @ShMcK posted. Instead of relying on multiple reducers to store each type of entity, a single reducer handles the abstraction by passing Normalizr schemas This reducer handles all our "database tables". This was just a demo for complex selectors; it definitely could have warts removed. I know delete has several ways it could be handled better. It might be worth it to scale this to the example @haysclark mentioned. |
|
Sticking a pin here, because if there's one guide that needs to exist for Rematch, it's CRUD. |
|
I've worked on an implementation of the TodoMVC app using the toolkit I've been hacking on |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@d3dc This issue was automaticaly closed. Could we reopen it? I've exactly the same question. |
|
Second that. |
I was curious if there is an example of normalizing data with Rematch?
There was a pretty good discussion on this subject in #337; however, I was hoping a more general topic title would get more feedback and ideally examples. I would love to see a Rematch example similar to the user/articles/comments example in normalizr's readme.