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 demo for useThrottledEffect exhibits some strange behavior. To reproduce, try slowly entering the string a1aaaaaa into the text box, and you'll see the status toggle repeatedly between "no digits" and "has digits".
I think the regexp in this line should drop the "global" flag. From these docs:
JavaScript RegExp objects are stateful when they have the global or sticky flags set (e.g., /foo/g or /foo/y). They store a lastIndex from the previous match.
The text was updated successfully, but these errors were encountered:
This demo for useThrottledEffect exhibits some strange behavior. To reproduce, try slowly entering the string
a1aaaaaa
into the text box, and you'll see the status toggle repeatedly between "no digits" and "has digits".I think the regexp in this line should drop the "global" flag. From these docs:
The text was updated successfully, but these errors were encountered: