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

Formatter hooks cause un-wanted re-render #565

Open
aminick opened this issue Dec 7, 2021 · 1 comment
Open

Formatter hooks cause un-wanted re-render #565

aminick opened this issue Dec 7, 2021 · 1 comment
Labels
type:bug This is a bug

Comments

@aminick
Copy link
Contributor

aminick commented Dec 7, 2021

image

@aminick
Copy link
Contributor Author

aminick commented Dec 13, 2021

More details:
image

In this case, defaultOptions object are re-created as new every re-render, which causes useLocalizedNumberFormatter to return a new callback every re-render.

@aminick aminick added the type:bug This is a bug label Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant