-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project status? #1
Comments
Hey @markerikson. Project is not dead. I am slowly moving towards the goal, but there is some problems I have to (properly) solve first. Like
The current approach is not provide special factory to make any memoization function be compatible with proxy. Like |
@theKashey : see the linked React RFC thread for my rough idea of how React-Redux could use
It's okay if some key names happen to hash to the same bit value - the general idea is just to cut down on the impact somewhat. I'm sure more sophisticated approaches are possible, this would just be a relatively basic approach. |
Let me rephase:
Also - sometimes you should dive deeper into the store, making slices smaller. But even top level separation will help a lot. |
I'm not quite sure I follow what you were saying in that comment. For the "hashing function" side, I briefly experimented a couple months ago with using a "minimal perfect hashing" algorithm, which seemed to produce reasonable results - see here: https://codesandbox.io/s/o5vpjpq5lq . Ideally, I'd like to have connected components auto-calculate what keys they're accessing, per the ideas you've discussed in this repo. If we can figure out a good way to do that, great! If not, we can still potentially add an option to |
So, let me explain what I've got today: Proxyequal - as a "base layer". Wraps This library is all you need to make a first step. But not the second step. The problems are
So the plan is:
Another option:
Ie be more declarative and let js help you write down these declarations. All this stuff is hard to write, but easy to test. But this behavior doesn't sound like something production ready. |
Yeah, Leland Richardson put together a function similar to I'd say that if we wanted to do some initial heuristics, a component whose |
In your example
|
|
Hiya. I've been busy focusing on React-Redux v6, but I ran across this repo and was curious what the status is. I see a long design doc, but no other commits in the last few months.
FWIW, some of the concepts of "automatic state access" tracking are very much in line with things that I would like to see built into React-Redux, particularly because that would let us optimize which connected components actually get updated via context when an action is dispatched (per my discussion in reactjs/rfcs#60 ).
The text was updated successfully, but these errors were encountered: