[BUG] when making a 'module' node, typein the same name of the module iteself will cause the page freeze.
lancety opened this issue · comments
lancety commented
step to reproduce
- open https://rete.js.org/#/examples/module#lang=en&tosearch=%20separate%20plugin%20for%20those%20who%20need
- clean the input of "Module" node in index.rete
- type in "index"
- when typing "x" letter, the page will freeze.
lancety commented
"react": "16.8.6",
"react-dom": "16.8.6",
"react-scripts": "3.0.1",
"rete": "1.3.1-rc.3",
"rete-area-plugin": "0.2.1",
"rete-connection-plugin": "0.7.2",
"rete-context-menu-plugin": "^0.6.0-rc.1",
"rete-module-plugin": "^0.4.1",
"rete-react-render-plugin": "0.2.0"
Vitaliy Stoliarov commented
indeed, an additional check is needed to prevent the module from being used recursively