-
Notifications
You must be signed in to change notification settings - Fork 22
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
DO NOT MERGE - EXAMPLE Thunk actions#9 #211
base: master
Are you sure you want to change the base?
Conversation
|
||
export const INCREMENT_COUNTER = 'INCREMENT_COUNTER'; | ||
|
||
export function increment() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A standard FSA-complaint action
}; | ||
} | ||
|
||
export function incrementBy(step) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FSA with a payload
}; | ||
} | ||
|
||
export function incrementAsync() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redux-thunk
action that triggers FSA renderer-side
}; | ||
} | ||
|
||
export function incrementByAsync(step) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redux-thunk
action that triggers FSA with payload
}; | ||
} | ||
|
||
export const incrementMain = createAliasedAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aliased action that triggers FSA main-side
increment | ||
); | ||
|
||
export const incrementAsyncMain = createAliasedAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aliased action that triggers thunk action (which produces FSA) main-side (recommended)
incrementAsync | ||
); | ||
|
||
export const incrementByAsyncMain = createAliasedAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above, with payload (recommended)
No description provided.