Skip to content
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

rest param for spread #251

Open
Kelin2025 opened this issue Sep 25, 2022 · 0 comments
Open

rest param for spread #251

Kelin2025 opened this issue Sep 25, 2022 · 0 comments
Labels
RFC Some new feature that should be discussed

Comments

@Kelin2025
Copy link
Member

Kelin2025 commented Sep 25, 2022

spread({
  source: abcChanged,
  targets: { a: $a },
  rest: $bc
})

This will send payload.a to $a, and { b: payload.b, c: payload.c } to $bc
where the payload is a value passed to the abcChanged event

@sergeysova sergeysova added the feature New functionality label Sep 26, 2022
@sergeysova sergeysova added RFC Some new feature that should be discussed and removed feature New functionality labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Some new feature that should be discussed
Projects
None yet
Development

No branches or pull requests

2 participants