mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
Separated param definition and unpacking for readibility
This commit is contained in:
parent
4b2c3d2db7
commit
6103f6a89b
1 changed files with 2 additions and 6 deletions
|
@ -99,15 +99,11 @@ export const lastVisitLoaderForLoader = (
|
|||
|
||||
export const createVisitsReducer = <State extends VisitsInfo, AT extends ReturnType<typeof createVisitsAsyncThunk>>(
|
||||
name: string,
|
||||
{
|
||||
asyncThunk,
|
||||
largeAction,
|
||||
fallbackToIntervalAction,
|
||||
progressChangedAction,
|
||||
}: AT,
|
||||
asyncThunkCreator: AT,
|
||||
initialState: State,
|
||||
filterCreatedVisits: (state: State, createdVisits: CreateVisit[]) => CreateVisit[],
|
||||
) => {
|
||||
const { asyncThunk, largeAction, fallbackToIntervalAction, progressChangedAction } = asyncThunkCreator;
|
||||
const { reducer, actions } = createSlice({
|
||||
name,
|
||||
initialState,
|
||||
|
|
Loading…
Reference in a new issue