Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
redux アプリで定期実行処理を書くには / アクション
export function trigger(payload: any = {}, meta: any = {}): Action {
return {
type: ActionTypes.CHECK_SAMPLE_TRIGGER,
payload,
meta,
};
}
export function stop(payload: any = {}, meta: any = {}): Action {
return {
type: ActionTypes.CHECK_SAMPLE_STOP,
payload,
meta,
};
}
export function exec(payload: any = {}, meta: any = {}): Action {
return {
type: ActionTypes.CHECK_SAMPLE_EXEC,
payload,
meta,
};
}
export function end(payload: any = {}, meta: any = {}): Action {
return {
type: ActionTypes.CHECK_SAMPLE_END,
payload,
meta,
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment