Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Redux Toolkit Migration] Use new Redux Toolkit configureStore API #4000

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typecheck error
  • Loading branch information
joel-jeremy committed Dec 19, 2024
commit a848d28389381f643f6decf8681cc165b43bb3a3
1 change: 0 additions & 1 deletion packages/desktop-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@fontsource/redacted-script": "^5.0.21",
"@juggle/resize-observer": "^3.4.0",
"@playwright/test": "1.41.1",
"@reduxjs/toolkit": "^2.5.0",
"@rollup/plugin-inject": "^5.0.5",
"@svgr/cli": "^8.1.0",
"@swc/core": "^1.5.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/loot-core/src/client/store/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { type store as realStore } from './index';

const appReducer = combineReducers(reducers);

export let mockStore: typeof realStore | null = null;
export let mockStore: typeof realStore = configureStore({
reducer: appReducer,
});

export function resetMockStore() {
mockStore = configureStore({
reducer: appReducer,
});
}

resetMockStore();
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ __metadata:
"@fontsource/redacted-script": "npm:^5.0.21"
"@juggle/resize-observer": "npm:^3.4.0"
"@playwright/test": "npm:1.41.1"
"@reduxjs/toolkit": "npm:^2.5.0"
"@rollup/plugin-inject": "npm:^5.0.5"
"@svgr/cli": "npm:^8.1.0"
"@swc/core": "npm:^1.5.3"
Expand Down