rete.js.org icon indicating copy to clipboard operation
rete.js.org copied to clipboard

[BUG] when making a 'module' node, typein the same name of the module iteself will cause the page freeze.

Open lancety opened this issue 4 years ago • 2 comments

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 avatar Jul 22 '21 00:07 lancety

"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"

lancety avatar Jul 22 '21 12:07 lancety

indeed, an additional check is needed to prevent the module from being used recursively

Ni55aN avatar Jul 24 '21 11:07 Ni55aN