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

asyncData called multiple times in nested routes #5468

Closed
msacar opened this issue Apr 5, 2019 · 1 comment
Closed

asyncData called multiple times in nested routes #5468

msacar opened this issue Apr 5, 2019 · 1 comment

Comments

@msacar
Copy link

msacar commented Apr 5, 2019

Version

v2.6.0

Reproduction link

https://codesandbox.io/embed/w04l29nmm7

Steps to reproduce

Hello im having problems with nested dynamic routes
here is a sandbox example https://codesandbox.io/embed/w04l29nmm7
i applied this documentation to sandbox https://nuxtjs.org/guide/routing#dynamic-nested-routes

pages/
--| _category/
-----| _subCategory/
--------| _id.vue
--------| index.vue
-----| _subCategory.vue
-----| index.vue
--| _category.vue
--| index.vue

for category route asyncData called 2 times
for category/subcategory route asyncData called 3 times

What is expected ?

asyncData called once for single page

What is actually happening?

asyncData called multiple times for single page

Additional comments?

for category route asyncData called 2 times
for category/subcategory route asyncData called 3 times

This bug report is available on Nuxt community (#c9000)
@ghost ghost added the cmty:bug-report label Apr 5, 2019
@manniL
Copy link
Member

manniL commented Apr 5, 2019

Duplicate of #4008

@manniL manniL marked this as a duplicate of #4008 Apr 5, 2019
@manniL manniL closed this as completed Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants