You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running the reproduction example, open DevTools in your browser
Refresh the page to force a re-render
Observe that the console contains three logs from Home.vue, SyncComponent.vue, and AsyncComponent.vue that logs their respective DOM elements.
Expected behavior
The console.log()s from Home.vue, SyncComponent.vue, and AsyncComponent.vue should contain non-null DOM elements.
Actual behavior
The console.log()s from Home.vue, SyncComponent.vue, and AsyncComponent.vue all show that their respective DOM elements are null at the time of logging.
Additional information
Since each of the console.log() calls are made inside onMounted(), I would expect the DOM nodes to be inserted and rendered as per the official documentation on Lifecycle Hooks.
Further, since the setup of vue-router and <Suspense> together follows the official documentation (see App.vue), I do not expect this lifecycle principle to break.
The text was updated successfully, but these errors were encountered:
Reproduction
https://stackblitz.com/edit/vite-ajtmyh?file=src/views/Home.vue
Steps to reproduce the bug
Home.vue
,SyncComponent.vue
, andAsyncComponent.vue
that logs their respective DOM elements.Expected behavior
The
console.log()
s fromHome.vue
,SyncComponent.vue
, andAsyncComponent.vue
should contain non-null DOM elements.Actual behavior
The
console.log()
s fromHome.vue
,SyncComponent.vue
, andAsyncComponent.vue
all show that their respective DOM elements are null at the time of logging.Additional information
Since each of the
console.log()
calls are made insideonMounted()
, I would expect the DOM nodes to be inserted and rendered as per the official documentation on Lifecycle Hooks.Further, since the setup of
vue-router
and<Suspense>
together follows the official documentation (seeApp.vue
), I do not expect this lifecycle principle to break.The text was updated successfully, but these errors were encountered: