Blocks with Mutator-Driven Output Types Fail to Reconnect After Reloading JSON #8692
Open
1 task done
Labels
issue: bug
Describes why the code or behaviour is wrong
Check for duplicates
Description
I am encountering an issue when connecting a block with an input type check (e.g., "String") to another block that has a mutator with multiple output types (e.g., "Array" and "String").
The connection works correctly when the second block is configured to have the appropriate output type ("String"), and I can successfully save the workspace as JSON. However, when I reload the JSON into the workspace, the two blocks become disconnected.
This issue appears to be related to the combination of type checks and dynamically changing output types managed by the mutator.
I suspect the problem occurs because type checking is performed too early during the loading process. Initially, the second block is interpreted with its default output type (e.g., "Array"), which makes it incompatible with the input type of the first block. As a result, the connection is not re-established even though the mutator could later set the output type to "String."
Reproduction steps
Observed Behavior:
Upon reloading the JSON, the blocks are disconnected, despite having been connected correctly before saving.
Expected Behavior:
The blocks should remain connected after reloading, preserving their valid configuration.
Stack trace
Screenshots
Browsers
No response
The text was updated successfully, but these errors were encountered: