Comments (2)
Thanks for your complete reply! I realize that (maybe) both vueflow and pinia create a new effect scope. Sorry I'm not familiar with these advanced scope.
Again, thanks to your reply!
from vue-flow.
Why not just use the state instance generated in pinia and return it from your store?
From what I can tell the problem here is that the pinia doesn't use the same scope as the setup body where useVueFlow
is called by you, which causes VueFlow to think it needs to create a new state instance.
Instead just call it once in pinia, return the instance and you should be able to use it :)
from vue-flow.
Related Issues (20)
- 🐛 [BUG]: node change events not triggered when removing nodes HOT 6
- 🐛 [BUG]: Edge arrow is changing its target/source HOT 4
- 🐛 [BUG]: onConnect sourceHandle/targetHandle is null HOT 2
- 🐛 [BUG]: Sometimes nodeClick does not emit HOT 34
- 🐛 [BUG]: Parent node extent not enforced when used with Node Resizer HOT 2
- 🐛 [BUG]: Custom Node input type=number When I click the arrow, the number will change not stop HOT 1
- 🐛 [BUG]: scroll wheel not hidden when dragging with middle mouse button HOT 4
- 🐛 [BUG]: TypeError: Cannot read properties of undefined (reading 'id') HOT 2
- 🐛 [BUG]: applyChanges is not working, but applyDefault does HOT 2
- 🐛 [BUG]: The error has being was passing the onNodesInitialized event or other event on the VueFlow component HOT 8
- 🐛 [BUG]: Component emitted event "x" but it is neither declared in the emits option nor as an "x" prop. HOT 5
- 🐛 [BUG]: <title>windows not defined HOT 7
- 🐛 [BUG]: useHandle have different type description from official document HOT 1
- 🐛 [BUG]: Build DnD example with pinia cannot create edges HOT 1
- 🐛 [BUG]: Wrapped Handle cannot be totally controlled by isValidConnection HOT 4
- 🐛 [BUG]: Multi-Select doesn't work after zooming with snap-to-grid HOT 3
- 🐛 [BUG]: Wrong props in the controlled flow guideline HOT 1
- 🐛 [BUG]: Cannot change edge text color HOT 1
- 🐛 [BUG]: Allow node/edge pointer events if mouse event listeners exist HOT 1
- 🐛 [BUG]: onNodeClick exectues two times in a row (Version:1.41.1) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-flow.