serverInfo.ts 223 Bytes
Newer Older
Viacheslav Pavlov's avatar
Viacheslav Pavlov committed
1
2
3
4
5
6
7
8
9
import { RECEIVE_SSR_ERROR_INFO } from 'core/constants/serverInfo';


export const receiveSsrError = (status: number, route: string) => ({
  type: RECEIVE_SSR_ERROR_INFO,
  payload: {
    error: { status, route },
  },
});