How to use the typesafe-actions.action function in typesafe-actions

To help you get started, we’ve selected a few typesafe-actions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github muninrpc / muninrpc / app / src / actions / mainActions.ts View on Github external
  export const removeTab = (id: string) => action(Type.REMOVE_TAB, id);
github brave / brave-core / components / brave_webtorrent / extension / actions / webtorrent_actions.ts View on Github external
export const progressUpdated = (torrent: Torrent) => action(types.WEBTORRENT_PROGRESS_UPDATED, { torrent })
export const infoUpdated = (torrent: Torrent) => action(types.WEBTORRENT_INFO_UPDATED, { torrent })
github decentraland / explorer / kernel / packages / shared / loading / types.ts View on Github external
export const notInvited = () => action(NOT_INVITED)
export const UNITY_CLIENT_LOADED = 'Rendering engine finished loading.'
github leejh3224 / react-native-hello-talk / src / store / modules / example.ts View on Github external
const increment = (amount: number) => action(INCREMENT, amount);
const decrement = (amount: number) => action(DECREMENT, amount);
github brave / brave-core / components / brave_rewards / resources / android_page / actions / rewards_actions.ts View on Github external
export const onPromotions = (properties: Rewards.PromotionResponse) => action(types.ON_PROMOTIONS, {
  properties
})
github source-academy / cadet-frontend / src / actions / session.ts View on Github external
export const login = () => action(actionTypes.LOGIN);
github Alluxio / alluxio / webui / worker / src / store / blockInfo / actions.tsx View on Github external
export const fetchError = (message: string): AnyAction => action(BlockInfoActionTypes.FETCH_ERROR, message);
github decentraland / builder / src / modules / deployment / actions.ts View on Github external
export const deployToLandSuccess = (deployment: Deployment) => action(DEPLOY_TO_LAND_SUCCESS, { deployment })
export const deployToLandFailure = (error: string) => action(DEPLOY_TO_LAND_FAILURE, { error })
github decentraland / agora / webapp / src / modules / poll / actions.ts View on Github external
export const fetchPollsSuccess = (
  polls: PollWithAssociations[],
  total: number,
  filters: PollsRequestFilters
) => action(FETCH_POLLS_SUCCESS, { polls, total, filters })
export const fetchPollsFailure = (error: string) =>