alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 72 forks source link

Don't re-render on route change #48

Closed Duncank closed 5 years ago

Duncank commented 5 years ago

I've got tabs that change the hash (or query) parameter of the route in order to be able to use the back button to return to previous tabs.

The content of the page stays the same when switching tabs, only some v-show changes on divs in the page. The v-runtime-template-elements re-render all contents when the route-parameter changes, while other components don't do that. Is there a way to prevent this from happening?

Duncank commented 5 years ago

Hmm, this always happens within minutes after hours of debugging and finally submitting an issue. I've found the problem to be with updating data in my application, not related with this component.