-
Notifications
You must be signed in to change notification settings - Fork 36
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
issue about destroy glcomponent #87
Comments
Oh - sorry - I guess one has no notifications when the bug is closed. |
Oh, I'm sorry. The error in the screen shot is the error that occurs when the demo-stack is closed, not gl-component. My mistake. Actually, the problem I am currently experiencing occurs when the @destroy callback of gl-component is called. I saved the data to draw the gl-component inside the stack in the vuex store. And if I closed the gl-component, I tried to remove the data that made up that gl-component from the store through @destory callback. But after the initial normal removal, the @DesToy callback is called back. At this time, an attempt is made to erase another gl-component in the same stack that is not subject to the destroy. I tried to make a demo through the code sandbox, but errors such as the screenshot attached are occurring. Other vue-golden-layout examples of code sandbox are experiencing the same error. I think I can't deliver an example through this. Have you ever seen a case like this? If an example of the current situation is needed, how should it be communicated? |
I really tried several time unsuccessfully to find out the bug or even a case where @destroy is called twice on a component. |
I finally figured out which part was the problem. Within the callback function for 'remove child callback' (Our web), I'm splicing data about the data in the vuex store that should be closed. (red box) Is there any way I can handle this part? |
The part that calls'remove child callback' is'_$destory(Stack)'. |
I also tried to upload an example to codesandbox and got the same error: So if you don't mind, I've prepared a zip file with a super basic example, here After running you will see a screen like that: Just press the button and see the error in console. |
I finally found the origin of the error. Indeed, the "destroy stack 2" I don't know why, destroys both the stacks. It seems that it occurs when the stacks container (here the |
@eddow i have the same problem, how do I fix it? |
@eddow +1 |
The solution is really cost-less - and the problem is too bizarre to make it a priority |
@eddow
I'm sorry to bother you.
Could you tell me how the error handling of this issue is going?
The text was updated successfully, but these errors were encountered: