[PR #5579] [MERGED] Prevent unnecessary calls to DB if same redux action is already pending #6007

Closed
opened 2026-02-28 21:22:27 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5579
Author: @joel-jeremy
Created: 8/19/2025
Status: Merged
Merged: 8/20/2025
Merged by: @joel-jeremy

Base: masterHead: prevent-unnecessary-renders-hooks


📝 Commits (10+)

  • 0d7c969 Prevent unnecessary calls to DB if same redux action is already pending
  • 60e88f3 [autofix.ci] apply automated fixes
  • e00064a Release notes
  • d149a68 Add rejected reducers
  • 60cda32 Add dirty states
  • 2887686 Remove commented code
  • 901442b Update packages/desktop-client/src/queries/queriesSlice.ts
  • af55134 Update packages/desktop-client/src/queries/queriesSlice.ts
  • 9eb3144 Update packages/desktop-client/src/queries/queriesSlice.ts
  • 8e4ca0a Update packages/desktop-client/src/queries/queriesSlice.ts

📊 Changes

23 files changed (+479 additions, -184 deletions)

View changed files

📝 packages/desktop-client/src/accounts/accountsSlice.ts (+12 -12)
📝 packages/desktop-client/src/components/FinancesApp.tsx (+2 -2)
📝 packages/desktop-client/src/components/ManageRules.tsx (+2 -2)
📝 packages/desktop-client/src/components/accounts/Account.tsx (+2 -2)
📝 packages/desktop-client/src/components/budget/index.tsx (+9 -7)
📝 packages/desktop-client/src/components/mobile/budget/BudgetPage.tsx (+10 -7)
📝 packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx (+2 -2)
📝 packages/desktop-client/src/components/payees/ManagePayeesWithData.tsx (+3 -6)
📝 packages/desktop-client/src/components/rules/RuleEditor.tsx (+2 -2)
📝 packages/desktop-client/src/components/tags/ManageTags.tsx (+1 -1)
📝 packages/desktop-client/src/components/tags/TagCreationRow.tsx (+1 -1)
📝 packages/desktop-client/src/components/tags/TagEditor.tsx (+1 -1)
📝 packages/desktop-client/src/global-events.ts (+8 -4)
📝 packages/desktop-client/src/hooks/useAccounts.ts (+3 -3)
📝 packages/desktop-client/src/hooks/useCategories.ts (+5 -3)
📝 packages/desktop-client/src/hooks/usePayees.ts (+8 -10)
📝 packages/desktop-client/src/hooks/useTagCSS.ts (+34 -49)
packages/desktop-client/src/hooks/useTags.ts (+20 -0)
📝 packages/desktop-client/src/notes/DesktopTaggedNotes.tsx (+1 -1)
📝 packages/desktop-client/src/notes/MobileTaggedNotes.tsx (+1 -1)

...and 3 more files

📄 Description

This is causing the slow down on initial load of the mobile account transactions page because the DB is being bombarded by DB calls on every render


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5579 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/20/2025 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `prevent-unnecessary-renders-hooks` --- ### 📝 Commits (10+) - [`0d7c969`](https://github.com/actualbudget/actual/commit/0d7c969fb638d9fa0fcad4fc070f60ae4dc178cb) Prevent unnecessary calls to DB if same redux action is already pending - [`60e88f3`](https://github.com/actualbudget/actual/commit/60e88f3cbc4c2570319db4c0c852fbf81b792e4f) [autofix.ci] apply automated fixes - [`e00064a`](https://github.com/actualbudget/actual/commit/e00064ad380bd975732cf251051ca15e556a7d45) Release notes - [`d149a68`](https://github.com/actualbudget/actual/commit/d149a68012f04e4973c404b94312a2e095fc18f3) Add rejected reducers - [`60cda32`](https://github.com/actualbudget/actual/commit/60cda326719a31aa5ce36265b0649926fb6925f5) Add dirty states - [`2887686`](https://github.com/actualbudget/actual/commit/28876864c5504a46eb13a7e238ebb7b6bee4641d) Remove commented code - [`901442b`](https://github.com/actualbudget/actual/commit/901442bd3845099ad12f9bd910afa3827c0603a6) Update packages/desktop-client/src/queries/queriesSlice.ts - [`af55134`](https://github.com/actualbudget/actual/commit/af55134c1c80beaa831756e53a202e0f29827130) Update packages/desktop-client/src/queries/queriesSlice.ts - [`9eb3144`](https://github.com/actualbudget/actual/commit/9eb31443d794e6d48fe373d23d8a209705e0a9c8) Update packages/desktop-client/src/queries/queriesSlice.ts - [`8e4ca0a`](https://github.com/actualbudget/actual/commit/8e4ca0a73134c81bdcb4dbaa61031083fa7a073a) Update packages/desktop-client/src/queries/queriesSlice.ts ### 📊 Changes **23 files changed** (+479 additions, -184 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/accounts/accountsSlice.ts` (+12 -12) 📝 `packages/desktop-client/src/components/FinancesApp.tsx` (+2 -2) 📝 `packages/desktop-client/src/components/ManageRules.tsx` (+2 -2) 📝 `packages/desktop-client/src/components/accounts/Account.tsx` (+2 -2) 📝 `packages/desktop-client/src/components/budget/index.tsx` (+9 -7) 📝 `packages/desktop-client/src/components/mobile/budget/BudgetPage.tsx` (+10 -7) 📝 `packages/desktop-client/src/components/modals/ImportTransactionsModal/ImportTransactionsModal.jsx` (+2 -2) 📝 `packages/desktop-client/src/components/payees/ManagePayeesWithData.tsx` (+3 -6) 📝 `packages/desktop-client/src/components/rules/RuleEditor.tsx` (+2 -2) 📝 `packages/desktop-client/src/components/tags/ManageTags.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/tags/TagCreationRow.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/tags/TagEditor.tsx` (+1 -1) 📝 `packages/desktop-client/src/global-events.ts` (+8 -4) 📝 `packages/desktop-client/src/hooks/useAccounts.ts` (+3 -3) 📝 `packages/desktop-client/src/hooks/useCategories.ts` (+5 -3) 📝 `packages/desktop-client/src/hooks/usePayees.ts` (+8 -10) 📝 `packages/desktop-client/src/hooks/useTagCSS.ts` (+34 -49) ➕ `packages/desktop-client/src/hooks/useTags.ts` (+20 -0) 📝 `packages/desktop-client/src/notes/DesktopTaggedNotes.tsx` (+1 -1) 📝 `packages/desktop-client/src/notes/MobileTaggedNotes.tsx` (+1 -1) _...and 3 more files_ </details> ### 📄 Description <!-- 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. --> This is causing the slow down on initial load of the mobile account transactions page because the DB is being bombarded by DB calls on every render --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:22:27 -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#6007