Skip to content

fix: improve concurrent behavior of removeNode and removeConnection#732

Merged
Ni55aN merged 1 commit into
retejs:fix/race-condition-removingfrom
forasugais:fix/remove_node_connection
Jun 30, 2025
Merged

fix: improve concurrent behavior of removeNode and removeConnection#732
Ni55aN merged 1 commit into
retejs:fix/race-condition-removingfrom
forasugais:fix/remove_node_connection

Conversation

@forasugais

Copy link
Copy Markdown
Contributor

Description

This commit improves the concurrent behavior of removeNode and removeConnection.

In the previous code, removing multiple nodes or connections required awaiting each remove call inside a loop.
This may not be recommended depending on the linter configuration.
ref. https://eslint.org/docs/latest/rules/no-await-in-loop

Related Issues

#720

Checklist

Additional Notes

Sorry, I wasn't able to run rete-qa tests due to installation errors. (Maybe my PC doesn't have enough memory...)

@forasugais
forasugais force-pushed the fix/remove_node_connection branch from 982c4b1 to 4229f1f Compare June 23, 2025 01:39
@forasugais forasugais changed the title fix: Improve concurrent behavior of removeNode and removeConnection fix: improve concurrent behavior of removeNode and removeConnection Jun 24, 2025
@Ni55aN
Ni55aN changed the base branch from main to fix/race-condition-removing June 30, 2025 10:21
@Ni55aN
Ni55aN merged commit 9487786 into retejs:fix/race-condition-removing Jun 30, 2025
3 of 4 checks passed
@Ni55aN Ni55aN mentioned this pull request Jun 30, 2025
4 tasks
@rete-js

rete-js Bot commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rete-js rete-js Bot added the released label Jun 30, 2025
@Ni55aN

Ni55aN commented Jun 30, 2025

Copy link
Copy Markdown
Member

@forasugais thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants