Questions tagged [vue-suspense]
17 questions
3
votes
2 answers
Suspense in Vue 3 on nested routes - why content disappears?
I'm using Suspense, and fetching async data on pages. On init fallback loading indicator is visible, but while switching pages I'm keeping current page content until new page is ready + nprogress bar, so site behaves more like SSR. There is also…

chojnicki
- 3,148
- 1
- 18
- 32
3
votes
2 answers
Vue 3 - Use suspense again when data have to be refreshed?
I am trying to use multiple times as a fallback while i am refreshing a component's data (using import() on a json file from the async setup()).
As stated by the documentation:
Once in a resolved state, will only revert to a…

Anthony Bobenrieth
- 2,758
- 1
- 26
- 38
2
votes
1 answer
Why i can't use v-skeleton-loader with vuetify
i don't know why i cant use v-skeleton-loader. anytime i use the component the console throw me this warning : Failed to resolve component: v-skeleton-loader.
i use vuetify": 3.1.4

gsk 42
- 53
- 5
1
vote
1 answer
Vue3 await for Pinia data
I'm trying to use Suspense to show a loading spinner. It works fine when using with fetch directly. However in some cases it doesn't work since I need to await for data already being fetched from another component.
Navbar -->…

Pithikos
- 18,827
- 15
- 113
- 136
1
vote
0 answers
Vue3 - typing of Suspense feature is failing
I'm trying to implement the Suspense experimental feature with Typescript.
Here's the whole component making use of Suspense:
…

Amesys
- 816
- 2
- 10
- 19
1
vote
1 answer
Error: suspense.resolve() is called without a pending branch (Vue 3)
I keep getting this error and I'm not sure why. Everything seem to work well but I'm still getting this error. Does anyone know what it really means? I cannot find the answer anywhere.

Lea
- 45
- 7
1
vote
1 answer
How to use vue3 suspense with dynamically loaded components inside ?
I am trying to use Suspense component to show the loading state of dynamic components in my app. But here I come across the scenario where both keep-alive and Suspense require on single root node.
…

gitam gadtaula
- 158
- 13
1
vote
1 answer
How to orchestrate async dependencies with Suspense Component and Vuex in Vue 3?
I'm trying to use Vue 3 Suspense component for my APP but all of the examples that I have found load the asynchronous data within the component, in my case I'm getting all the data from a WebSocket and then use a Vuex module to inject that data in…

Lowtrux
- 156
- 2
- 12
- 41
0
votes
1 answer
How to use vue3 suspense on the root level?
In vue3, my template is like this
But I get this warning
[Vue warn]: Component : setup function returned a promise, but no…

omega
- 40,311
- 81
- 251
- 474
0
votes
1 answer
How to use Vue3 suspense?
I am trying to use vue 3 suspense. And I am getting this
typescript 4.9.5
How can I resolve this?

omega
- 40,311
- 81
- 251
- 474
0
votes
0 answers
Runtime-dom error with vue-suspense and RouterView
I have got Bug and I dont know how to fix it.
I use vue-router with suspense for async components. Use it like in the documentation:
https://vuejs.org/guide/built-ins/suspense.html#combining-with-other-components
…
0
votes
0 answers
VueJS Supense only works whenI land on the Async component
I read this part of documentation: https://vuejs.org/guide/built-ins/suspense.html#combining-with-other-components
I have in my menu 2 links: "Home" and "Tools". If I land on my root page, that is to say the "Home" route, then I go to the "Tools"…

djcaesar9114
- 1,880
- 1
- 21
- 41
0
votes
3 answers
Cannot access functions in Vue 3 suspense component during unit-test
I can't access functions of the wrapper.vm in the unit tests once my component become async on the top-level (needed to use feature).

Ali Eren
- 35
- 1
- 7
0
votes
1 answer
Unable to mark Vue setup function as async
I have a Vue3 app using the composition api and want to fetch data asynchronously inside the setup function.
Approaches that worked for me:
Working with Promises
{{ result }}