Skip to content

Add useTimeout and useInterval hooks #10

Open
@ThaNarie

Description

@ThaNarie

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.

Metadata

Metadata

Assignees

Labels

new-hookThe addition of a new hook

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions