[PR #417] [CLOSED] fix: move history to a shared variable #3118

Closed
opened 2026-02-28 20:36:42 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/417
Author: @MatissJanis
Created: 12/31/2022
Status: Closed

Base: masterHead: matiss/history


📝 Commits (1)

  • 5a160f0 fix: move history to a shared variable

📊 Changes

4 files changed (+22 additions, -29 deletions)

View changed files

📝 packages/desktop-client/src/components/FinancesApp.js (+11 -17)
📝 packages/desktop-client/src/components/manager/ManagementApp.js (+2 -5)
📝 packages/desktop-client/src/global-events.js (+6 -7)
packages/desktop-client/src/history.js (+3 -0)

📄 Description

Currently history variable is instatiated 2x. Once in ManagementApp and once in FinanceApp.

When a customer is setting up the app for the first time and when he is redirected from ManagementApp to FinanceApp - the history context gets recreated. This also means we sometimes lost history.push("/new-page") action.

The fix is rather simple - to use a single, consistent history variable that is instatiated only one time.


🔄 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/417 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 12/31/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `matiss/history` --- ### 📝 Commits (1) - [`5a160f0`](https://github.com/actualbudget/actual/commit/5a160f0818b81249a2a77cc82015b3e346537ad6) fix: move history to a shared variable ### 📊 Changes **4 files changed** (+22 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/FinancesApp.js` (+11 -17) 📝 `packages/desktop-client/src/components/manager/ManagementApp.js` (+2 -5) 📝 `packages/desktop-client/src/global-events.js` (+6 -7) ➕ `packages/desktop-client/src/history.js` (+3 -0) </details> ### 📄 Description Currently `history` variable is instatiated 2x. Once in `ManagementApp` and once in `FinanceApp`. When a customer is setting up the app for the first time and when he is redirected from `ManagementApp` to `FinanceApp` - the history context gets recreated. This also means we _sometimes_ lost `history.push("/new-page")` action. The fix is rather simple - to use a single, consistent `history` variable that is instatiated only one time. --- <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 20:36:42 -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#3118