Subscribe on changes!

How to use vue router and vuex inside custom element from root?

avatar
Nov 2nd 2021

Version

3.2.21

Reproduction link

stackblitz.com

Steps to reproduce

Inside my demo project you can see nested custom elements where I add styles recursively.

What is expected?

I need to connect vuex & vue router in root custom element (c.e) inside main.js then use from child c.e. How I can do this correctly?

What is actually happening?

import { defineCustomElement } from "./defineCustomElementWithStyles";
import App from "./App.ce.vue";

customElements.define("app-root", defineCustomElement(App));

https://stackoverflow.com/questions/69808113/how-to-use-vue-router-and-vuex-inside-custom-element-from-root

avatar
Nov 2nd 2021

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.