vue.js - Parent rerenders every time nested route changes -
i have project simple folder structure similar following:
pages/ --items.vue --items/ ----_id.vue
i have included <nuxt-child/>
inside items.vue
along list of items link different id's. _id.vue
renders modal displays info based on id passed param.
this working , rendering except each time item clicked, items.vue
component re-renders causing reset state , lose users scroll position.
is expected behavior? possible have dynamic nested routes without re-rendering parent each route change?
Comments
Post a Comment