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
This was a change to move away from defaultProps to inline default props. However, there is one pretty big side effect.
Component.defaultProps props references never changes. But {options = []} in the function arguments changes on each render. And because [] !== [] it triggers a hook that resets the options to an empty array. We can get around it by using memo and deep equal function. But it's pretty sneaky and will be less efficient.
Scope: <DESCRIBE SCOPE OF THIS ISSUE, i.e.: PF4 mapper, Form renderer>
This is for MUI mapper.
Description
Adding
isSearchable
to MUI Select withloadOptions
breaks loading. When you type your search, none of the options show up.Schema
You can reproduce here by adding
isSearchable: true
.<If it's possible, please provide a schema which reproduces the issue>
The text was updated successfully, but these errors were encountered: