Skip to content

Fix useQuery to support Vue 3 #1041

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

Merged
merged 3 commits into from
Oct 15, 2020
Merged

Fix useQuery to support Vue 3 #1041

merged 3 commits into from
Oct 15, 2020

Conversation

frandiox
Copy link
Contributor

onServerPrefetch only exists in Vue 2's composition API, not in Vue 3 as far as I know.

onServerPrefetch is not exported in Vue 3 at the moment
@Akryum
Copy link
Member

Akryum commented Oct 15, 2020

Won't this break in Vue 2?

@frandiox
Copy link
Contributor Author

@Akryum nextTick is exported from Vue 2's composition API package so I think it should work: https://github.com/vuejs/composition-api/blob/master/src/apis/index.ts#L30

Maybe @antfu can shed some light here.

The same goes for #1045

@Akryum Akryum merged commit c9ee0ec into vuejs:v4 Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants