Skip to content

feat: add mutation api #202

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: add mutation api #202

wants to merge 1 commit into from

Conversation

manfredsteyer
Copy link
Collaborator

rxMutation creates a mutation function in the store, delegating to a function/ method returning an observable, and takes care of race conditions by internally using mergeMap (default), switchMap, concatMap, or exhaustMap.

mutation also creates an async mutation function, delegating to a function/ method returning an observable. When the async function is awaited without throwing an exception, the caller can safely assume that it has been executed. However, here, the consumer is responsible for preventing race conditions.

rxMutation creates a mutation function in the store delegating to a
function/method returning an observable and takes care of race conditions
by internally using mergeMap (default), switchMap, concatMap, or
exhaustMap.

mutation also creates an async mutation function delegating to a
function/method returning an observable. When the async function is awaited
without throwing an exception, the caller can safely assume that it has
been executed. However, here, the consumer is responsible for preventing
race conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant