Clarification on toStateData
merging into a nested object field
#694
-
Hi there, let's say I have the following state object
Is it correct to use Scanning the examples and docs I could only find one example with such a format (most examples show merging into one level) so I thought to ask if my assumption is correct. PS: The example I am referring to might have an error. This is the example here. The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@giorgosera if your expression language allows it, it's perfectly correct to use such filter. JQ allows that out of the box AFAIK, so you're good there.
It's not an error. The spec mandates using the $ and mustaches prefix/suffix only in non-native runtime expression values. It should imo enforce it everywhere, though. Anyways, back to the sample: the |
Beta Was this translation helpful? Give feedback.
@giorgosera if your expression language allows it, it's perfectly correct to use such filter. JQ allows that out of the box AFAIK, so you're good there.
It's not an error. The spec mandates using the $ and mustaches prefix/suffix only in non-native runtime expression values. It should imo enforce it everywhere, though.
Anyways, back to the sample: the
toStateData
property is a runtime expression, therefore the format does not forci…