-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
TS warning for "enabled" as Ref #1491
Comments
Does const enableQuery = ref(false);
const { onResult } = useQuery<{ someData: SomeData[] }>(
SomeQuery,
() => ({
someParam: someRef.value,
}),
() => ({ enabled: enableQuery })
); |
It works, don't make it a function
|
I have opened the PR for this. "Enabled" works as expected when assigning Ref or Boolean, but to remove warning i just extended missing type. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
TS warning is shown if you use "enabled" option as Ref
Unexpected number of arguments ❗
The text was updated successfully, but these errors were encountered: