Skip to content

useInterval and useIntervalFn | should be renamed to closer to be browser behavior #4682

@mrleblanc101

Description

@mrleblanc101

Clear and concise description of the problem

Currently, useInterval does not do what one would expect, be a replacement for window.setInterval.
It is an automatically incrementing counter !

Suggested solution

I propose that useInterval be renamed useIntervalCount, and that useIntervalFn be renamed useInterval, which would align better with native browser behavior.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions