This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get all | |
export const get$Entity$s = createAction("$ENTITY_CAP$S/GET_$ENTITY_CAP$S"); | |
export const get$Entity$sSuccess = createAction<PagedType<any>>( | |
"$ENTITY_CAP$S/GET_$ENTITY_CAP$S_SUCCESS" | |
); | |
export const get$Entity$sError = createAction<PayloadError[]>( | |
"$ENTITY_CAP$S/GET_$ENTITY_CAP$_ERROR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { toast } from "react-toastify"; | |
import axios from "axios"; | |
import { getCurrentUser } from "../helpers/auth.helper"; | |
import { dispatch } from "../../redux/root.store"; | |
import { logoutUser } from "../../redux/actions/auth/auth.actions"; | |
export const axiosBase = axios.create(); | |
axiosBase.interceptors.request.use(function(request) { | |
debugger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const $ACTION_NAME$ = "$ACTION_NAME$"; | |
export const $ACTION_NAME$_SUCCESS = "$ACTION_NAME$_SUCCESS"; | |
export const $ACTION_NAME$_ERROR = "$ACTION_NAME$_ERROR"; | |
// action types | |
export interface $ACTION_NAME_CLASSIFY$Action { | |
type: typeof $ACTION_NAME$, | |
payload: any | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const $ACTION$ = "$ACTION$"; | |
export const $ACTION$_SUCCESS = "$ACTION$_SUCCESS"; | |
export const $ACTION$_ERROR = "$ACTION$_ERROR"; | |
export function $ACTION_FUNC$($3$) { | |
return { | |
type: $ACTION$, | |
$3$ | |
}; | |
} |