-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
graph.dispose() not working as expected #3751
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
When I enter the contents of test2, I print $cell before graph.resetCells and find that it is an array of length 13, so your previous calculation is wrong. Not a problem with graph.dispose. |
Thanks to your comment I've been able to break out of my debugging block. It indeed isn't a problem with After correctly disposing of Thank you for your guidance |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
问题描述
Follow up from this discussions thread:
#3723
I've been thinking about how to reproduce the behaviour in the most simple way possible and I chose the approach of just displaying how graph.dispose() doesn't really dispose anything for me, which results in behaviour I described in the discussion. (tldr; dispose isnt disposing)
I made a repo on stackblitz, the link is below. Most important logic is in
GraphX6.svelte
file,test1.json
andtest2.json
are elk processed graph definitions. You can probably ignore the rest.重现链接
https://stackblitz.com/edit/sveltejs-kit-template-default-z3os2x?file=src%2Froutes%2Ftest1.json
重现步骤
Step 1: Copy contents of test1.json (contains 3 nodes and 2 edges) and paste to textarea. Graph with 3 nodes and 2 edges, albeit ugly, should display.
Step 2: Delete contents of textarea and click dispose button. Graph looks cleared.
Step 3: Copy contents of test2.json (contains 2 nodes and 1 edge) and paste again. It displays the same graph like in step 1 (3 nodes, 2 edges).
Step 4. Doublecheck - refresh, copy and paste test2.json. Shows 2 nodes and 1 edge.
预期行为
Is this a bug or am I misunderstanding what
graph.dispose()
does? I'd expect it would trash the whole graph instance and every relation to it. I am even reinstancing the graph but it doesn't help either.平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: