mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-12-12 23:59:10 -06:00
Merge branch 'develop' into feature/fetch
This commit is contained in:
commit
a88ebc26a9
@ -1,7 +1,12 @@
|
|||||||
import { createAsyncThunk as baseCreateAsyncThunk, AsyncThunkPayloadCreator } from '@reduxjs/toolkit';
|
import { createAsyncThunk as baseCreateAsyncThunk, AsyncThunkPayloadCreator } from '@reduxjs/toolkit';
|
||||||
|
import { identity } from 'ramda';
|
||||||
import { ShlinkState } from '../../container/types';
|
import { ShlinkState } from '../../container/types';
|
||||||
|
|
||||||
export const createAsyncThunk = <Returned, ThunkArg>(
|
export const createAsyncThunk = <Returned, ThunkArg>(
|
||||||
typePrefix: string,
|
typePrefix: string,
|
||||||
payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, { state: ShlinkState }>,
|
payloadCreator: AsyncThunkPayloadCreator<Returned, ThunkArg, { state: ShlinkState, serializedErrorType: any }>,
|
||||||
) => baseCreateAsyncThunk(typePrefix, payloadCreator);
|
) => baseCreateAsyncThunk(
|
||||||
|
typePrefix,
|
||||||
|
payloadCreator,
|
||||||
|
{ serializeError: identity },
|
||||||
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user