rete icon indicating copy to clipboard operation
rete copied to clipboard

Dynamic outputs doesn't render

Open CRGavrila opened this issue 5 years ago • 2 comments

Dynamic outputs doesn't register in rete component when this will first mount.

You can reproduce this at: https://codepen.io/hatead1/pen/GaZYaq Steps:

  1. go to codepen
  2. replace: let nodes = {"id":"[email protected]","nodes":{"1":{"id":1,"data":{},"inputs":{},"outputs":{"a":{"connections":[]},"b":{"connections":[]},"c":{"connections":[]},"d":{"connections":[]}},"position":[479.0970052722768,130.678304684546],"name":"AddOutput"}}}; at line 128
  3. run the pen

result: there is no output based on node json Expected: should have 4 outputs

CRGavrila avatar May 29 '20 09:05 CRGavrila

Seems similar to this closed issue : #439 Does it solve your problem ?

kvnbra avatar May 29 '20 13:05 kvnbra

@kvnbra I thought on that solution to also store in data, but this means repeat ourself and to store same thin 2 different places, in "data" and "outputs". If this is not a workaround and is the expected flow, the @Ni55aN should mention, and maybe i could make a pull request for docs.

CRGavrila avatar May 29 '20 14:05 CRGavrila

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

rete-js[bot] avatar Jul 13 '23 10:07 rete-js[bot]