node-red
node-red copied to clipboard
Frontend stall in case of many files in git
Current Behavior
How to reproduce (danger - stalls tab, heats cpu) :
- Make git enabled node red project, add any nodes, not matter, just have something on screen, "forget" build cache or "node_modules" directory in project directory and not add it to the .gitignore (many files, do not add them to git, just place to project dir)
- restart node-red
- open frontend in browser, login if needed
- see your tab stalled
Biggest impact for me that it is hard to recognise problem reason fast and you start to fix your OS, browser... before found that you dropped cache not comm
Expected Behavior
I expect it not stall.
It is because git tree builder, or something like this loop is sync (not pretty sure, but it loops hard) and have no place to "timeout", may be there other libraries for building such tree?
Steps To Reproduce
No response
Example flow
paste your flow here
Environment
- Node-RED version: 4.0.3-20
- Node.js version: 20
- npm version:
- Platform/OS: docker image nodered/node-red:4.0.3-20
- Browser: any