-
-
Notifications
You must be signed in to change notification settings - Fork 142
[select] Fix re-render warning in Positioner
on fallback
#2089
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
Conversation
commit: |
Bundle size reportTotal Size Change: 🔺+44B(0.00%) - Total Gzip Change: 🔺+16B(0.00%) Show details for 41 more bundles@base-ui-components/react parsed: 🔺+22B(+0.01%) gzip: 🔺+8B(+0.01%) |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
By fallback mode you mean item-not-aligned-to-trigger like this right? I couldn't reproduce a warning 🤔 @atomiks |
@mj12albert yeah that's right, but I think it only happens in dev mode |
The set-state-in-render pattern only works if the state is local to the component, otherwise it needs to use an effect now that it's in the store.
To reproduce the warning before, just open the select close to the edge of the viewport so it enters fallback mode