Subscribe on changes!

suspense.resolve() is called without a pending branch.

avatar
Jan 11th 2023

Vue version

3.2.45

Link to minimal reproduction

https://codesandbox.io/s/vue-router-playground-forked-w9164p?file=/src/pages/Page2.vue

Steps to reproduce

Create an application with vue and vue-router and the suspense component.

When creating a page, during the setup function navigate to another page (in my case this is how I handle an error) than this error is triggered.

What is expected?

Just no error message from vue / Suspense.

What is actually happening?

I get the following error message:

suspense.resolve() is called without a pending branch.

Nevertheless I can keep on using the application without any problems. I just want to get rid of the error message.

System Info

No response

Any additional comments?

No response

avatar
Feb 3rd 2023

faced with the same problem

avatar
Dec 29th 2023

Using "window.location.href" could resolve error