-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't dynamically add layers to the stage #201
Comments
That is the bug in version 3. I wasn't able to find the solution yet. For now, just no use It is not recommended to use too many layers any way. |
Using v-if on the Layer can cause similar problems. Demo to reproduce the error (click "Add layer"): After investigating the cause of the problem, I found that removing According to the Vue3 docs, the key is now automatically generated, so removing the DOM would cause problems, right? |
Any update or workaround on this issue? |
@Avarow This has been a longstanding issue with Vue3 and Konva. I don't think there is any solution other than putting your conditionals inside the v-layer |
When trying to add a layer to the stage in vue-konva Vue crashes:
Following by
While the error supplies that it's an internal Vue bug I suspect it is still related to how Konva treats layers during the runtime.
Environment:
Demo to reproduce the error (click "Add layer"):
https://codesandbox.io/s/vibrant-scooby-u20x98
The text was updated successfully, but these errors were encountered: