[PR #6938] [WIP] Move redux state to react-query - prefs states #6831

Open
opened 2026-02-28 21:33:17 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6938

State: open
Merged: No


Dependent on https://github.com/actualbudget/actual/pull/6880


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 27 14.85 MB → 14.86 MB (+8.35 kB) +0.05%
loot-core 1 5.82 MB 0%
api 1 4.43 MB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
27 14.85 MB → 14.86 MB (+8.35 kB) +0.05%
Changeset
File Δ Size
src/prefs/mutations.ts 🆕 +5.18 kB 0 B → 5.18 kB
src/prefs/queries.ts 🆕 +2.07 kB 0 B → 2.07 kB
src/hooks/useSyncedPref.ts 📈 +635 B (+83.01%) 765 B → 1.37 kB
src/hooks/useMetadataPref.ts 📈 +624 B (+77.81%) 802 B → 1.39 kB
src/hooks/useGlobalPref.ts 📈 +608 B (+66.02%) 921 B → 1.49 kB
src/index.tsx 📈 +192 B (+10.64%) 1.76 kB → 1.95 kB
src/users/usersSlice.ts 📈 +89 B (+7.73%) 1.13 kB → 1.21 kB
src/global-events.ts 📈 +276 B (+6.89%) 3.91 kB → 4.18 kB
src/budgetfiles/budgetfilesSlice.ts 📈 +737 B (+6.09%) 11.83 kB → 12.55 kB
node_modules/recharts/es6/state/polarOptionsSlice.js 📈 +18 B (+5.57%) 323 B → 341 B
src/app/appSlice.ts 📈 +150 B (+5.50%) 2.66 kB → 2.81 kB
src/components/modals/CreateEncryptionKeyModal.tsx 📈 +159 B (+1.93%) 8.06 kB → 8.22 kB
src/sync-events.ts 📈 +193 B (+1.85%) 10.19 kB → 10.38 kB
src/components/budget/index.tsx 📈 +224 B (+1.73%) 12.65 kB → 12.87 kB
src/accounts/accountsSlice.ts 📈 +6 B (+0.45%) 1.31 kB → 1.31 kB
src/components/settings/index.tsx 📈 +33 B (+0.28%) 11.45 kB → 11.49 kB
node_modules/estree-util-is-identifier-name/lib/index.js 📈 +2 B (+0.26%) 756 B → 758 B
src/components/select/RecurringSchedulePicker.tsx 📈 +4 B (+0.01%) 31.47 kB → 31.47 kB
src/components/transactions/SimpleTransactionsTable.tsx 📉 -2 B (-0.02%) 9.17 kB → 9.17 kB
src/components/manager/ConfigServer.tsx 📉 -22 B (-0.09%) 23.18 kB → 23.16 kB
node_modules/hast-util-to-jsx-runtime/lib/index.js 📉 -18 B (-0.09%) 18.93 kB → 18.92 kB
src/components/App.tsx 📉 -19 B (-0.20%) 9.46 kB → 9.44 kB
src/components/FinancesApp.tsx 📉 -42 B (-0.22%) 18.61 kB → 18.57 kB
src/redux/store.ts 📉 -4 B (-0.37%) 1.05 kB → 1.05 kB
src/browser-preload.browser.js 📉 -34 B (-0.74%) 4.51 kB → 4.48 kB
src/components/LoggedInUser.tsx 📉 -85 B (-1.37%) 6.07 kB → 5.99 kB
src/hooks/useSyncedPrefs.ts 📉 -25 B (-4.13%) 605 B → 580 B
src/prefs/prefsSlice.ts 📉 -2.51 kB (-66.77%) 3.76 kB → 1.25 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 9.54 MB → 9.55 MB (+8.35 kB) +0.09%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/ca.js 188.15 kB 0%
static/js/da.js 106.35 kB 0%
static/js/de.js 180.07 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 170.37 kB 0%
static/js/es.js 174.55 kB 0%
static/js/fr.js 179.6 kB 0%
static/js/it.js 171.16 kB 0%
static/js/nb-NO.js 156.96 kB 0%
static/js/nl.js 106.37 kB 0%
static/js/pl.js 88.37 kB 0%
static/js/pt-BR.js 154.22 kB 0%
static/js/th.js 181.87 kB 0%
static/js/uk.js 214.74 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/ReportRouter.js 1.16 MB 0%
static/js/narrow.js 637.68 kB 0%
static/js/TransactionList.js 106.22 kB 0%
static/js/wide.js 164.15 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 10.04 kB 0%
static/js/useTransactionBatchActions.js 13.23 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.82 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.BwrdDDMW.js 5.82 MB 0%

api

Total

Files count Total bundle size % Changed
1 4.43 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
bundle.api.js 4.43 MB 0%
**Original Pull Request:** https://github.com/actualbudget/actual/pull/6938 **State:** open **Merged:** No --- <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> Dependent on https://github.com/actualbudget/actual/pull/6880 <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 27 | 14.85 MB → 14.86 MB (+8.35 kB) | +0.05% loot-core | 1 | 5.82 MB | 0% api | 1 | 4.43 MB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 27 | 14.85 MB → 14.86 MB (+8.35 kB) | +0.05% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/prefs/mutations.ts` | 🆕 +5.18 kB | 0 B → 5.18 kB `src/prefs/queries.ts` | 🆕 +2.07 kB | 0 B → 2.07 kB `src/hooks/useSyncedPref.ts` | 📈 +635 B (+83.01%) | 765 B → 1.37 kB `src/hooks/useMetadataPref.ts` | 📈 +624 B (+77.81%) | 802 B → 1.39 kB `src/hooks/useGlobalPref.ts` | 📈 +608 B (+66.02%) | 921 B → 1.49 kB `src/index.tsx` | 📈 +192 B (+10.64%) | 1.76 kB → 1.95 kB `src/users/usersSlice.ts` | 📈 +89 B (+7.73%) | 1.13 kB → 1.21 kB `src/global-events.ts` | 📈 +276 B (+6.89%) | 3.91 kB → 4.18 kB `src/budgetfiles/budgetfilesSlice.ts` | 📈 +737 B (+6.09%) | 11.83 kB → 12.55 kB `node_modules/recharts/es6/state/polarOptionsSlice.js` | 📈 +18 B (+5.57%) | 323 B → 341 B `src/app/appSlice.ts` | 📈 +150 B (+5.50%) | 2.66 kB → 2.81 kB `src/components/modals/CreateEncryptionKeyModal.tsx` | 📈 +159 B (+1.93%) | 8.06 kB → 8.22 kB `src/sync-events.ts` | 📈 +193 B (+1.85%) | 10.19 kB → 10.38 kB `src/components/budget/index.tsx` | 📈 +224 B (+1.73%) | 12.65 kB → 12.87 kB `src/accounts/accountsSlice.ts` | 📈 +6 B (+0.45%) | 1.31 kB → 1.31 kB `src/components/settings/index.tsx` | 📈 +33 B (+0.28%) | 11.45 kB → 11.49 kB `node_modules/estree-util-is-identifier-name/lib/index.js` | 📈 +2 B (+0.26%) | 756 B → 758 B `src/components/select/RecurringSchedulePicker.tsx` | 📈 +4 B (+0.01%) | 31.47 kB → 31.47 kB `src/components/transactions/SimpleTransactionsTable.tsx` | 📉 -2 B (-0.02%) | 9.17 kB → 9.17 kB `src/components/manager/ConfigServer.tsx` | 📉 -22 B (-0.09%) | 23.18 kB → 23.16 kB `node_modules/hast-util-to-jsx-runtime/lib/index.js` | 📉 -18 B (-0.09%) | 18.93 kB → 18.92 kB `src/components/App.tsx` | 📉 -19 B (-0.20%) | 9.46 kB → 9.44 kB `src/components/FinancesApp.tsx` | 📉 -42 B (-0.22%) | 18.61 kB → 18.57 kB `src/redux/store.ts` | 📉 -4 B (-0.37%) | 1.05 kB → 1.05 kB `src/browser-preload.browser.js` | 📉 -34 B (-0.74%) | 4.51 kB → 4.48 kB `src/components/LoggedInUser.tsx` | 📉 -85 B (-1.37%) | 6.07 kB → 5.99 kB `src/hooks/useSyncedPrefs.ts` | 📉 -25 B (-4.13%) | 605 B → 580 B `src/prefs/prefsSlice.ts` | 📉 -2.51 kB (-66.77%) | 3.76 kB → 1.25 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 9.54 MB → 9.55 MB (+8.35 kB) | +0.09% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/ca.js | 188.15 kB | 0% static/js/da.js | 106.35 kB | 0% static/js/de.js | 180.07 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 170.37 kB | 0% static/js/es.js | 174.55 kB | 0% static/js/fr.js | 179.6 kB | 0% static/js/it.js | 171.16 kB | 0% static/js/nb-NO.js | 156.96 kB | 0% static/js/nl.js | 106.37 kB | 0% static/js/pl.js | 88.37 kB | 0% static/js/pt-BR.js | 154.22 kB | 0% static/js/th.js | 181.87 kB | 0% static/js/uk.js | 214.74 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/ReportRouter.js | 1.16 MB | 0% static/js/narrow.js | 637.68 kB | 0% static/js/TransactionList.js | 106.22 kB | 0% static/js/wide.js | 164.15 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 10.04 kB | 0% static/js/useTransactionBatchActions.js | 13.23 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.82 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.BwrdDDMW.js | 5.82 MB | 0% </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.43 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- bundle.api.js | 4.43 MB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end --->
GiteaMirror added the pull-request label 2026-02-28 21:33:17 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6831