Show timeout max value warning in documentation #316
Closed
dhimitrios12
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
I will make the hook throw if you set a value that is too large. I will also make a note in the docs. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be good to have mentioned somewhere in the documentation (maybe a warning)that there is a max value the
timeout
property can take.In my project we set the timeout in minutes and the QA was testing for some big values. When we were converting it to milliseconds the value was surpassing the max value that
setTimeout(...)
can handle and the prompt was shown immediately as soon as the user open the app.I know it is not good to have big values for idle time for security reasons. It was just a testing scenarion.
Some docs: https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#:~:text=Maximum%20delay%20value,the%20timeout%20being%20executed%20immediately.
Beta Was this translation helpful? Give feedback.
All reactions