N
Novu2w ago
Mohamed

Workflow Nodes take a bit of time to be rendered.

Hello guys, I just wanna share something I noticed while building complex flows that contains more than 10 nodes. When the number of nodes is increasing, the next node I add it took 3-5 sec to be shown on the flow editor, I also noticed a delay when updating the node title from its sidebar to be fully updated on the actual node in flow editor. I looked at the codebase to see what's going on, I found out there is a memoization for the ChannelNode component which is the parent of WorkflowNode, also after adding some logs inside ChannelNode and WorkflowsNode, these logs keep printing out whenever new node is being added so many times. so I don't know how to track/debug this issue, is it more related to a react-flow kinda behavior ? or it's more likely a hidden issue in these main component (FlowEditor, WorkflowEditor, WorkflowNode, ChannelNode) really appreciated any thoughts from u guys
2 Replies
Pawan Jain
Pawan Jain2w ago
@Mohamed Thanks for sharing the issue. it will be helpful if you can add the issue on github !issue
Novu_Bot
Novu_Bot2w ago
Let's open an issue over GitHub! That's the link you should follow: https://github.com/novuhq/novu/issues/new/choose
Want results from more Discord servers?
Add your server