Ash FrameworkAF
Ash Framework4mo ago
4 replies
Marco Dell'Olio

Custom on option on update action

What is the idiomatic way to pass a custom option to an action. Id like to achieve the following:

update_contact_cool_action(contact, attrs, push_sync: false)


eventually the option would have a default value.

- I saw I can define an argument, but then it needs to be merged into the attributes
- I can use the context but no default
- I can create a new action
- else?


Also, if I go about creating the two actions they would share several custom changes, how i'd go at abstracting that "pipelaine" and re use it?
Was this page helpful?