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
Hello, I have used a library for many years, but I have not encountered a case like this. Because clearValue or setValue causes an infinite loop. The problem is seen whether or not setTImeout is used. I add some comments to the code so you can see the problem.
The problem is that the options change. Using a native select, it resets when the selected value is no longer within the options, but with react-selec it causes infinite loop.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have used a library for many years, but I have not encountered a case like this. Because clearValue or setValue causes an infinite loop. The problem is seen whether or not setTImeout is used. I add some comments to the code so you can see the problem.
The problem is that the options change. Using a native select, it resets when the selected value is no longer within the options, but with react-selec it causes infinite loop.
https://codesandbox.io/p/sandbox/codesandboxer-example-forked-r3kc8m?file=%2Fexample.tsx%3A26%2C62
Beta Was this translation helpful? Give feedback.
All reactions