[Vuejs]-Nested Nuxt instances

0👍

You could created two seperate components, one for editing and one for rendering.
These could utilize components themselves to keep the overhead to a minimun.

You could also use the same component, but lazy load the editor features based on some condition like:

  1. If youre fine with having the Editor only available during development you can create an env variable and check for process.env.NODE_ENV !== 'production'

  2. Another way would be to have some sort of authorization that combined with v-if would show the editor or hide it.

Leave a comment