Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Better data-fetching library for nuxt #10324

Closed
Jarsen136 opened this issue May 20, 2024 · 1 comment
Closed

Better data-fetching library for nuxt #10324

Jarsen136 opened this issue May 20, 2024 · 1 comment

Comments

@Jarsen136
Copy link
Contributor

Jarsen136 commented May 20, 2024

Yup. Giving a key on useAsyncData does not handle the cache automatically. To use the cache from nuxt, it should use useNuxtData to manually manage the cache.

It's inconvenient to use tbh. I prefer some smart data-fetching library like vue-query, providing some powerful and convenient options like staleTimequeryKey enabled etc.

ref: https://tanstack.com/query/latest/docs/framework/vue/guides/query-keys

Originally posted by @Jarsen136 in #10299 (comment)

WDYT? Feel free to write down any other ideal option. @kodadot/internal-dev

@preschian
Copy link
Member

ref: tanstack.com/query/latest/docs/framework/vue/guides/query-keys

I'm good with it. Ref: #4657 (comment).

or,

for the profile case, cache it from the profile-workers side if possible

@kodadot kodadot locked and limited conversation to collaborators May 20, 2024
@vikiival vikiival converted this issue into discussion #10329 May 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants