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

Clarify code documentation in useIntervalFn #3968

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

bkis
Copy link
Contributor

@bkis bkis commented May 14, 2024

The documentation for the option immediateCallback in useIntervalFn was very misleading, making me search for a solution for a long time. Actually, immediateCallback already was the solution, but the documentation made me think otherwise: immediateCallback decides whether the callback is called immediately after resume is called. The former documentation said "Execute the callback immediate after calling this function", leaving it unclear what is meant by "this function" (I assumed it referred to the actual composable, useIntervalFn, but that's not the case).

Thank you for this absolutely lifesaving library ❤️

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 14, 2024
@antfu antfu merged commit a66001a into vueuse:main May 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants