You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that this library has an API to take custom hooks from the component props. In this way, with the react fast refresh hot reloading, the state of the sub component may be lost 馃槬.
This is because react fast refresh is implemented based on Babel. When parsing the custom hooks used by sub components, it will treat all the hooks as global functions by default, and ignore the local ones passed in from props. This is a problem that I have encountered in the development, I'd like to share it with you~
The text was updated successfully, but these errors were encountered:
Hello, I think this project looks very cool~
I see that this library has an API to take custom hooks from the component props. In this way, with the react fast refresh hot reloading, the state of the sub component may be lost 馃槬.
This is because
react fast refresh
is implemented based on Babel. When parsing the custom hooks used by sub components, it will treat all the hooks as global functions by default, and ignore the local ones passed in from props. This is a problem that I have encountered in the development, I'd like to share it with you~The text was updated successfully, but these errors were encountered: