-
I have a field which sets its value according to 3 other fields. Initially, it works fine, but after a couple of switches, it looses its functionality. I'm wondering if I'm using the sequence wrong or missing something there |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello @Ali-Zmn, the sequence condition works differently >> That means, all the conditions run at once in your code and because you have I have removed all the Please take a look. (Maybe you would need to add one |
Beta Was this translation helpful? Give feedback.
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 ofsome 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-5b2o45Please take a look. (Maybe you would need to add one
else: { visible: true }
(but without the setter!) - to show the field, at…