[PR #3879] [MERGED] Optimize useSheetValue #39538

Closed
opened 2026-04-23 12:28:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: masterHead: optiminze-useSheetValue


📝 Commits (8)

📊 Changes

6 files changed (+71 additions, -53 deletions)

View changed files

📝 packages/desktop-client/src/components/spreadsheet/useSheetValue.ts (+27 -13)
📝 packages/loot-core/src/client/SpreadsheetProvider.tsx (+9 -5)
📝 packages/loot-core/src/mocks/spreadsheet.ts (+1 -1)
📝 packages/loot-core/src/server/main.ts (+2 -16)
📝 packages/loot-core/src/shared/query.ts (+26 -18)
upcoming-release-notes/3879.md (+6 -0)

📄 Description

Build on top of https://github.com/actualbudget/actual/pull/3882. This update checks if the component was already unmounted and prevents a set state call + only call JSON.stringify when there is a query.


🔄 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/3879 **Author:** [@joel-jeremy](https://github.com/joel-jeremy) **Created:** 11/22/2024 **Status:** ✅ Merged **Merged:** 12/10/2024 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `optiminze-useSheetValue` --- ### 📝 Commits (8) - [`5131e5a`](https://github.com/actualbudget/actual/commit/5131e5a79f25ca823eb325629903396b14d06d1c) Optimize useSheetValue - [`af74856`](https://github.com/actualbudget/actual/commit/af7485614450021be5588cce179d0ab07056436b) Fix lint - [`d4e3612`](https://github.com/actualbudget/actual/commit/d4e361256736b61e7573b5f8542cbbff42aad9e7) Fix mock bind - [`cca6a30`](https://github.com/actualbudget/actual/commit/cca6a309967473fce6faed8c11425aacd4fce1b3) Reduce re-renders - [`7ea1adf`](https://github.com/actualbudget/actual/commit/7ea1adf0aabe6c555874dbdaab6432ea62c0c866) Update useSheetValue - [`3226417`](https://github.com/actualbudget/actual/commit/3226417666e1faddaa939a54d0e5ead6992017e1) Update - [`244a697`](https://github.com/actualbudget/actual/commit/244a697cf483f47d0940355d7dde825f4bcd5166) Make QueryState immutable - [`873d4fa`](https://github.com/actualbudget/actual/commit/873d4fa2e01089a65a6c2de99c3af8fe0311e70a) Release notes ### 📊 Changes **6 files changed** (+71 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/spreadsheet/useSheetValue.ts` (+27 -13) 📝 `packages/loot-core/src/client/SpreadsheetProvider.tsx` (+9 -5) 📝 `packages/loot-core/src/mocks/spreadsheet.ts` (+1 -1) 📝 `packages/loot-core/src/server/main.ts` (+2 -16) 📝 `packages/loot-core/src/shared/query.ts` (+26 -18) ➕ `upcoming-release-notes/3879.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 --> Build on top of https://github.com/actualbudget/actual/pull/3882. This update checks if the component was already unmounted and prevents a set state call + only call JSON.stringify when there is a query. --- <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-04-23 12:28:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#39538