Skip to content

Standardize hook parameter shapes #527

Closed

Description

@mnxmnz

useInterval accepts a number or an options object, while the debounced and throttled callback hooks put required values inside an object. Take a single options object, callback included, so every value is named at the call site; update types, docs, and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions