-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State reactivity bug Form example #444
Comments
Happy Path FlowTo help understand how the flow operates, when it works correctly, based on my investigations, this is what happens: graph TD
A[AppComponent] -->|initiates| B[BlocksWorkflowComponent]
B -->|reads JSON config| C[InitBlockComponent]
C -->|first form| D1[FormBlockComponent 1]
D1 -->|data input| F[ContextSaveBlockComponent saves data to test context]
F -->|input processed| G1[MappingBlockComponent 1, returns a length of 2]
G1 -->|second mapping| G2[MappingBlockComponent 2 returns saved context.test]
G2 -->|second form| D2[FormBlockComponent 2 should be populated by the same as form 1]
D2 -->|final debug| E2[DebugBlockComponent]
|
I'm investigating a fix where the execution state of the blocks and data passing could be controlled from the component logic rather than the template renderer's existing big block. I am looking into doing this without async data forking first. So far I have got it outputting the default blocks with no config options used yet, without data passing yet, without using the template, but using a ComponentFactoryResolver. This is good progress. @dahacouk |
My dynamic loading investigation is here: 4a516a0 that does not have config being loaded. |
|
Bug description
Form block fails to update with updated data value. The Form block allows data to pass through on the first use, but the state fails to be reactive after the first use in certain conditions.
form_block_fail_compressed_video.mp4
Reproduction steps
length(data)
,The user should rightly expect the 2nd form block to be populated by the value from the first form block but it does not.
Expected behaviour
We should expect the Form block to update with the passed in data value.
Flow Configuration:
Flow example link.
Runtime environment:
Additional context:
The kind of mapping operation appears to matter. The "init" block does seem to change any behaviour. Happens cross-browser: Chrome, Safari and Firefox.
Questions:
Where does the Flow reactivity / re-evaluation break down?
At which block does it stop flowing, and why?
Is the context block to blame? How does using the state system avoid the problem in this flow?
Is the form block needed to reproduce this?
Are two form block's needed?
The text was updated successfully, but these errors were encountered: