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
Parent route and sub route component route object:
route: {data(){ ... }}
Every time the sub route changes (e.g /users/1 to /users/2 ) the parent data function is called.
Is there a way to prevent the parent data function from getting called when the sub route changes?
Currently I use activate instead of data in the parent route object. But I think you should use the data function when you want to fetch data.