Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useTimeout and useInterval hooks #10

Open
ThaNarie opened this issue Jan 7, 2022 · 0 comments · May be fixed by #16
Open

Add useTimeout and useInterval hooks #10

ThaNarie opened this issue Jan 7, 2022 · 0 comments · May be fixed by #16
Assignees
Labels
new-hook The addition of a new hook

Comments

@ThaNarie
Copy link
Contributor

ThaNarie commented Jan 7, 2022

useTimeout exists in the Muban Core Component Library.

Additionally,

  • we should probably also auto-cancel these hooks in onUnmounted
  • the startImmediate should probably default to true to mimic the browser timeout.
  • timeoutRef doesn't have to be a ref, can be a normal const.
@ThaNarie ThaNarie added the new-hook The addition of a new hook label Jan 7, 2022
@larsvanbraam larsvanbraam self-assigned this Apr 22, 2022
@larsvanbraam larsvanbraam linked a pull request Apr 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-hook The addition of a new hook
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants