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
The useMount doesn't allow async callbacks just like react-use. The callback is now probably directly passed to a useEffect behind the scenes. It would be great if we can add support for async callbacks. That saves us using the ugly IIFE setup.
This is probably the same for useUnmount but I never do async things in the unmount.
The text was updated successfully, but these errors were encountered:
The useMount doesn't allow async callbacks just like react-use. The callback is now probably directly passed to a useEffect behind the scenes. It would be great if we can add support for async callbacks. That saves us using the ugly IIFE setup.
This is probably the same for useUnmount but I never do async things in the unmount.
The text was updated successfully, but these errors were encountered: