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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -