Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: add warning about definePageMeta issues with transitions and …
Browse files Browse the repository at this point in the history
…`NuxtLoadingIndicator` (#9055)

Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
Intevel and danielroe authored Nov 16, 2022
1 parent 780b17b commit 3aadc57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/content/1.docs/1.getting-started/5.transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export default defineNuxtConfig({
})
```

::alert{type=warning}
If you are changing layouts as well as page, the page transition you set here will not run. Instead, you should set a layout transition.
::

To start adding transition between your pages, add the following CSS to your [`app.vue`](/docs/guide/directory-structure/app):

::code-group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Add `<NuxtLoadingIndicator/>` in your `app.vue` or layouts.

:button-link[Open on StackBlitz]{href="https://stackblitz.com/github/nuxt/framework/tree/main/examples/routing/pages?terminal=dev&file=/app.vue" blank}

::alert{type=warning}
If you are changing layouts as well as page, the page transition you set here will not run. Instead, you should set a layout transition.
::

## Slots

You can pass custom HTML or components through the loading indicator's default slot.
Expand Down

0 comments on commit 3aadc57

Please sign in to comment.