Skip to content

Passing variables between vuejs3 instances #11306

Answered by L0st1
cehceh asked this question in Help/Questions
Discussion options

You must be logged in to vote

Hi
How to pass variables between two Vue.js3 instances? Do you need to keep their responsive?
But I am not sure which platform the code runs, and whether it is running on a browser. So the following content may not necessarily be helpful to you.

  • createGlobalState
  • use localStorage or sessionStoreage to set/get value , use setInterval to keep data in sync
  • Or Event Bus(you need to make sure those instances can set or get value from a global object. in a browser, it will be window usually)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cehceh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants