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
Here's a question about something similar
I can make a pull request with an optional cleanup function and it would include no breaking changes. The implementation would be similar to this
Ideally this utility would accept an options object with delay as a key but this could be a potential pitfall. Every render would cause the interval to be reset if the options object is not defined with a useState or is defined in the function component directly.
The text was updated successfully, but these errors were encountered:
Here's a question about something similar
I can make a pull request with an optional cleanup function and it would include no breaking changes. The implementation would be similar to this
Ideally this utility would accept an
options
object withdelay
as a key but this could be a potential pitfall. Every render would cause the interval to be reset if the options object is not defined with a useState or is defined in the function component directly.The text was updated successfully, but these errors were encountered: