[PR #3864] [MERGED] Use strict typing in useSheetValue and fix bug where query is not being updated when changed #5094

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3864
Author: @joel-jeremy
Created: 11/20/2024
Status: Merged
Merged: 11/22/2024
Merged by: @joel-jeremy

Base: masterHead: useSheetValue-fix-and-ts


📝 Commits (5)

  • 8a73266 Use strict typing in useSheetValue and fix bug where query is not being updated when changed
  • e3d1af0 Release notes
  • 6fe7fd6 Update VRT
  • 3124f72 Fix regression
  • cb9f778 Update VRT

📊 Changes

11 files changed (+57 additions, -33 deletions)

View changed files

📝 packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-1-chromium-linux.png (+0 -0)
📝 packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-2-chromium-linux.png (+0 -0)
📝 packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-4-chromium-linux.png (+0 -0)
📝 packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-5-chromium-linux.png (+0 -0)
📝 packages/desktop-client/src/components/accounts/Reconcile.tsx (+7 -5)
📝 packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx (+8 -5)
📝 packages/desktop-client/src/components/budget/envelope/BalanceMenu.tsx (+2 -1)
📝 packages/desktop-client/src/components/budget/envelope/BalanceMovementMenu.tsx (+3 -3)
📝 packages/desktop-client/src/components/budget/envelope/budgetsummary/ToBudgetMenu.tsx (+1 -1)
📝 packages/desktop-client/src/components/spreadsheet/useSheetValue.ts (+30 -18)
upcoming-release-notes/3864.md (+6 -0)

📄 Description

TS strict typing for useSheetValue and fix an issue where the sheet value uses the old query object whenever the query changes due to the query not being part of the useLayoutEffect dependencies.


🔄 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/3864 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 11/20/2024 **Status:** ✅ Merged **Merged:** 11/22/2024 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `useSheetValue-fix-and-ts` --- ### 📝 Commits (5) - [`8a73266`](https://github.com/actualbudget/actual/commit/8a7326631fa0d8648cf55d94b3869fd4aec4e4de) Use strict typing in useSheetValue and fix bug where query is not being updated when changed - [`e3d1af0`](https://github.com/actualbudget/actual/commit/e3d1af0d9de13781f9b3f5ec2de4698c0ee0a147) Release notes - [`6fe7fd6`](https://github.com/actualbudget/actual/commit/6fe7fd6bd54905e7d9e72f28de5cfc1ca486cef3) Update VRT - [`3124f72`](https://github.com/actualbudget/actual/commit/3124f72b6cb31edf5408f410c17f14b49fa5f7ec) Fix regression - [`cb9f778`](https://github.com/actualbudget/actual/commit/cb9f778833a749ed9f05d41af264d67d078ac3c1) Update VRT ### 📊 Changes **11 files changed** (+57 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-1-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-2-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-4-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/e2e/transactions.test.js-snapshots/Transactions-filters-transactions-by-category-5-chromium-linux.png` (+0 -0) 📝 `packages/desktop-client/src/components/accounts/Reconcile.tsx` (+7 -5) 📝 `packages/desktop-client/src/components/autocomplete/CategoryAutocomplete.tsx` (+8 -5) 📝 `packages/desktop-client/src/components/budget/envelope/BalanceMenu.tsx` (+2 -1) 📝 `packages/desktop-client/src/components/budget/envelope/BalanceMovementMenu.tsx` (+3 -3) 📝 `packages/desktop-client/src/components/budget/envelope/budgetsummary/ToBudgetMenu.tsx` (+1 -1) 📝 `packages/desktop-client/src/components/spreadsheet/useSheetValue.ts` (+30 -18) ➕ `upcoming-release-notes/3864.md` (+6 -0) </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 --> TS strict typing for useSheetValue and fix an issue where the sheet value uses the old query object whenever the query changes due to the query not being part of the `useLayoutEffect` dependencies. --- <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:05:54 -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#5094