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

How to use with useRequest with <Suspense> in vue 3??? Best wishes . [Feature Request] #160

Open
renatosaz opened this issue Aug 31, 2022 · 4 comments

Comments

@renatosaz
Copy link

需求描述 Feature Description

Use with

@renatosaz
Copy link
Author

I need to Use with Suspense in Vue 3

@John60676
Copy link
Member

I don't understand your question, maybe you can refer to the following code.

https://codesandbox.io/s/sad-cache-zmxyy2?file=/src/components/HelloWorld.vue

@renatosaz
Copy link
Author

Following this code and we can't sync errors from suspense (using onErrorCaptured hook from suspense) or use the cache from vuerequest ( both component and user are loading every request ) .

@John60676
Copy link
Member

Can you provide us with a demo?

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

No branches or pull requests

2 participants