Open
Description
My vue entrypoint js file that creates my vue component is surrounded by the code
document.addEventListener('turbolinks:load')
and this works fine in development mode but on production model the vue component is not created and I see a blank screen. But if I change that code to:
document.addEventListener('DOMContentLoaded')
then it works (vue component template is rendered) in production but in development it is only loaded first time but when I navigate to other parts of the site and come back the vue component is not rendered blank screen).
Is there something wrong with my code or turbolinks settings? Why does turbolinks:load not work in production?
I am using vueonrails version 1.0.0, rails 5.2.2
Metadata
Metadata
Assignees
Labels
No labels