-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[WIP] [Redux Toolkit Migration] accountSlice #4012
base: redux-toolkit
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller
Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
/update-vrt |
5b062e2
to
dd92cb3
Compare
9f560a7
to
ed63667
Compare
@@ -289,7 +300,8 @@ type AccountInternalProps = { | |||
categoryGroups: ReturnType<typeof useCategories>['grouped']; | |||
hideFraction: boolean; | |||
accountsSyncing: string[]; | |||
} & ReturnType<typeof useActions>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the useActions prop here. Instead we will pass in the dispatch function and dispatch the actions manually instead.
|
||
export function listenForSyncEvent(actions, store) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove actions from useActions
here. Instead, we manually dispatch the actions through the store's dispatch property.
actions/account.ts
/reducers/account.ts
->accounts/accountsSlice.ts
[WIP] [Redux Toolkit Migration] accountSlice #4012actions/queries.ts
/reducers/queries.ts
->queries/queriesSlice.ts
actions/app.ts
/reducers/app.ts
->app/appSlice.ts
actions/budgets.ts
/reducers/budgets.ts
->budgets/budgetsSlice.ts
actions/modals.ts
/reducers/modals.ts
->modals/modalsSlice.ts
actions/notifications.ts
/reducers/notifications.ts
->notifications/notificationsSlice.ts
actions/prefs.ts
/reducers/prefs.ts
->prefs/prefsSlice.ts
actions/user.ts
/reducers/user.ts
->users/usersSlice.ts