Skip to content
Discussion options

You must be logged in to vote

Hey, you can $set or $get outside of a repeater component by setting the final parameter to be true. This enables "absolute" state paths instead of those relative to the current component.

Imagine we had a component with the state path data.repeater.item1.first_name:

  • $get('last_name') would return the value of data.repeater.item1.last_name
  • $get('data.title', true) would return the value of data.title, not data.repeater.item1.data.title

So in your case, you probably want something like $set('data.FIELD_NAME', $value, true).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tangjh
Comment options

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