Skip to content

Commit

Permalink
refactor: create slice from reducers easier
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanwww committed Dec 6, 2023
1 parent 2816f9e commit 7ae6c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-renderer/src/MainWindow/redux/actions/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { omitUnderscorePrefixActions } from 'src/utils/redux';

import type { StoreState } from '../types';

import { _setAppDetails } from './reducers.app';
import * as appReducers from './reducers.app';

export function getInitialState(): StoreState {
return {};
Expand All @@ -14,7 +14,7 @@ const slice = createSlice({
name: 'Main',
initialState: getInitialState(),
reducers: {
_setAppDetails,
...appReducers,
},
});

Expand Down

0 comments on commit 7ae6c61

Please sign in to comment.