Open TheSisb opened 1 month ago
I'm running the demo locally and added a console log inside the App.tsx factory function withi:
factory
node.setEventListener("save", (p: any) => { console.log("save event listener", node.getId()); this.state.model!.doAction(Actions.updateNodeAttributes(node.getId(), { config: { model: node.getExtraData().model.toJson() } })); // node.getConfig().model = node.getExtraData().model.toJson(); });
and I'm noticing that after I change active tabs with my mouse, the save function gets repeatedly called forever:
demo
node.setEventListener("save"
npm run build:demo
npm run start
sublayout
It should be called once or twice (React 18) and stop
macOS
Ar
latest
No response
Describe the bug
I'm running the demo locally and added a console log inside the App.tsx
factory
function withi:and I'm noticing that after I change active tabs with my mouse, the save function gets repeatedly called forever:![image](https://github.com/user-attachments/assets/683e8f2b-790b-4b7e-bd09-a38cbb50a98b)
Your Example Website or App
demo
Steps to Reproduce the Bug or Issue
node.setEventListener("save"
npm run build:demo
andnpm run start
sublayout
example in the dropdown menuExpected behavior
It should be called once or twice (React 18) and stop
Operating System
macOS
Browser Type?
Ar
Browser Version
latest
Screenshots or Videos
Additional context
No response