Skip to content

Conditional sets using sequence #1248

Answered by rvsia
Ali-Zmn asked this question in Need help
May 5, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hello @Ali-Zmn,

the sequence condition works differently >> This special type of condition allows to trigger a sequence of multiple independent conditions. (...) Setters are executed independently. Read more here.

That means, all the conditions run at once in your code and because you have else statements there, some of unsuccessful condition sets the value of some title to an empty array.

I have removed all the else statements and now it looks working correctly when switching the provider: https://codesandbox.io/s/react-data-driven-sequence-reported-forked-5b2o45

Please take a look. (Maybe you would need to add one else: { visible: true } (but without the setter!) - to show the field, at…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Ali-Zmn
Comment options

@rvsia
Comment options

rvsia May 9, 2022
Maintainer

@Ali-Zmn
Comment options

@rvsia
Comment options

rvsia May 9, 2022
Maintainer

Answer selected by Ali-Zmn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants