Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
directive on vue-router does not run update hook when created inside functional component #2636
Steps to reproduce
First of all, apologies, because my jsfiddle seems to have a different problem. There the render function of the functional component is performed each time the route changes. I don't understand why.
What is expected?
The directives update hook should be triggered
What is actually happening?
The updated hook is not triggered. Only the inserted (when I first render the page). Then nothing more.
I am using the latest vue version 2.6.8.
functional components are always re rendered, so the whole thing is updated every time. You probably want to use the inserted hook on top of the updated hook