[Vuejs]-How to SSR nested components or slotted content with vueonrails?

0👍

Well, I analyzed the repo and by looking at the it, I think you should use the render_vue_component only for rendering the root component, like the main.js when you start a project with @vue/cli:

<%= render_vue_component('App', { router }) %>

I came to this conclusion by analyzing the vueonrails source code.

If you look to the render_vue_component function, it only takes the identifier and a data object, which internally calls render_react_component.

By this signature, it simply don’t fit with Vue’s render function signatures, which are (element, children) or (element, attributes, children).

Maybe you find a better support by opening an issue on the repo.

But I’d think twice before using this project because there isn’t any documentation so far and checking the website, seems like they are more focused in selling books about the project than creating a documentation.

Leave a comment