Skip to content

feat: add selector for useAyamami hook #453

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

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

InfiniteXyy
Copy link
Contributor

  • New Feature
  • Test Case

When I use ayanami in our business, I do encounter some performance bottlenecks due to existing "subscribe - setState- re-render loop", especially for very large modules.

So I added a simple state selector implementation for ayanami to give us some methods for performance optimization.

("Selector Deps" is not added, because I think they are not commonly used and may increase the learning burden. So all selectors are lazy called when state updated)

PS: I see a similar implementation in the “1.0 branch”, but not quite sure why it was deprecated? 👀

@Miloas Miloas merged commit 5b8ffde into LeetCode-OpenSource:master Mar 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants