fix: removed setState within an effect, responsibility moved to parent key

This commit is contained in:
findthelorax
2026-04-20 00:13:07 -04:00
parent 9dddd00858
commit f6de7d1770
3 changed files with 5 additions and 12 deletions
+1
View File
@@ -422,6 +422,7 @@ export default function App() {
</div>
<NodeModal
key={addNodeOpen ? 'add-open' : 'add-closed'}
open={addNodeOpen}
onClose={() => setAddNodeOpen(false)}
onSubmit={handleAddNode}