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

memo component will not rerender when useMatch changed #153

Closed
wenerme opened this issue Dec 14, 2021 · 0 comments
Closed

memo component will not rerender when useMatch changed #153

wenerme opened this issue Dec 14, 2021 · 0 comments

Comments

@wenerme
Copy link

wenerme commented Dec 14, 2021

Describe the bug

facebook/react#15156 (comment)

memo+useContext will not work

To Reproduce

Expected behavior

useMatch works in memo component, prefer out off tree state mgmt, e.g. https://github.com/pmndrs/zustand

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

@wenerme wenerme closed this as completed Dec 14, 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

No branches or pull requests

1 participant