[PR #4038] [MERGED] Fix loading of number format on initial app startup #5160

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4038
Author: @jfdoming
Created: 12/25/2024
Status: Merged
Merged: 12/27/2024
Merged by: @jfdoming

Base: masterHead: jfdoming/fix-number-format-loading


📝 Commits (2)

  • 11e934b Fix loading of number format on initial app load
  • d35f61c Add release notes

📊 Changes

4 files changed (+38 additions, -8 deletions)

View changed files

📝 packages/desktop-client/src/components/spreadsheet/useFormat.ts (+2 -5)
📝 packages/loot-core/src/client/actions/prefs.ts (+16 -2)
📝 packages/loot-core/src/shared/util.ts (+14 -1)
upcoming-release-notes/4038.md (+6 -0)

📄 Description

Fixes https://github.com/actualbudget/actual/issues/4037. The bug occurs because the React component renders without using useFormat at all. An easy fix would be to just call that hook inside the component, but then we risk this bug cropping up on other pages. Instead I changed the logic at preference load time so it's valid for all components

Requesting Matiss since this relates to https://github.com/actualbudget/actual/pull/3397 but feel free to request someone else instead


🔄 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/4038 **Author:** [@jfdoming](https://github.com/jfdoming) **Created:** 12/25/2024 **Status:** ✅ Merged **Merged:** 12/27/2024 **Merged by:** [@jfdoming](https://github.com/jfdoming) **Base:** `master` ← **Head:** `jfdoming/fix-number-format-loading` --- ### 📝 Commits (2) - [`11e934b`](https://github.com/actualbudget/actual/commit/11e934b18b90aa325295a4dc29cb54b85ca1467a) Fix loading of number format on initial app load - [`d35f61c`](https://github.com/actualbudget/actual/commit/d35f61c7eb84ee0ff608fe4f4e8ff3d2ab309b56) Add release notes ### 📊 Changes **4 files changed** (+38 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/spreadsheet/useFormat.ts` (+2 -5) 📝 `packages/loot-core/src/client/actions/prefs.ts` (+16 -2) 📝 `packages/loot-core/src/shared/util.ts` (+14 -1) ➕ `upcoming-release-notes/4038.md` (+6 -0) </details> ### 📄 Description Fixes https://github.com/actualbudget/actual/issues/4037. The bug occurs because the React component renders without using `useFormat` at all. An easy fix would be to just call that hook inside the component, but then we risk this bug cropping up on other pages. Instead I changed the logic at preference load time so it's valid for all components Requesting Matiss since this relates to https://github.com/actualbudget/actual/pull/3397 but feel free to request someone else instead --- <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:07:03 -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#5160