mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-31 16:11:51 +00:00
Migrated nonOrphanVisits reducer to RTK
This commit is contained in:
@@ -65,10 +65,9 @@ export const domainVisitsReducerCreator = (
|
||||
|
||||
builder.addCase(largeAction, (state) => ({ ...state, loadingLarge: true }));
|
||||
builder.addCase(progressChangedAction, (state, { payload: progress }) => ({ ...state, progress }));
|
||||
builder.addCase(
|
||||
fallbackToIntervalAction,
|
||||
(state, { payload: fallbackInterval }) => ({ ...state, fallbackInterval }),
|
||||
);
|
||||
builder.addCase(fallbackToIntervalAction, (state, { payload: fallbackInterval }) => (
|
||||
{ ...state, fallbackInterval }
|
||||
));
|
||||
|
||||
builder.addCase(createNewVisits, (state, { payload }) => {
|
||||
const { domain, visits, query = {} } = state;
|
||||
@@ -82,7 +81,6 @@ export const domainVisitsReducerCreator = (
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
const { cancelGetDomainVisits } = actions;
|
||||
|
||||
return { reducer, cancelGetDomainVisits };
|
||||
|
||||
Reference in New Issue
Block a user