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
Do we still use our wrapper hook or use it directly in our components?
Replace popperjs & react-popper with floating-ui
Edit:
Based on some light testing and looking at documentation for floating-ui it looks like its best to use it directly in each component now instead of via our wrapper hook. This is due to the new api for the library being more composable and doing much more than older versions.
At first glance, middleware in floating-ui now has features that replaces our need for useIsMounted, useOutsideClick and useHideBodyScroll hooks.
Popperjs
(along withreact-popper
) has evolved to floating-ui and is now deprecated/maintenance-mode as further development is done on floating-ui.Relevant blog post: https://blog.logrocket.com/popper-vs-floating-ui/
Actions
Do we still use our wrapper hook or use it directly in our components?Edit:
Based on some light testing and looking at documentation for
floating-ui
it looks like its best to use it directly in each component now instead of via our wrapper hook. This is due to the new api for the library being more composable and doing much more than older versions.At first glance,
middleware
infloating-ui
now has features that replaces our need foruseIsMounted
,useOutsideClick
anduseHideBodyScroll
hooks.Codesandbox examples using new floating-ui
The text was updated successfully, but these errors were encountered: