Skip to content
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

Question: How would you create "selectors" #36

Closed
danawoodman opened this issue Nov 19, 2018 · 2 comments
Closed

Question: How would you create "selectors" #36

danawoodman opened this issue Nov 19, 2018 · 2 comments

Comments

@danawoodman
Copy link
Contributor

Would using something like reselect be possible with recollect? For example, creating a selector that filters a list of items in your store and that automatically updates when the store changes?

Is there another way to approach this?

Thanks and keep up the good work!

@davidgilbertson
Copy link
Owner

Well it's funny, I just added a doc last night all about selectors. https://github.com/davidgilbertson/react-recollect/blob/master/docs/selector-pattern.md

I haven't tested with reselect though.

@danawoodman
Copy link
Contributor Author

Haha nice! A psychic you are!

This is golden 😆

When the people that made JavaScript were coming up with array methods, for each one they would do a shot of tequila and flip a coin to decide whether or not it should mutate the original array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants