[PR #5718] [Maintenance] Remove raw variables in render #13135

Closed
opened 2026-04-10 21:48:15 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/5718

State: closed
Merged: Yes


The LineGraph and StackedBarGraph uses a sumTotals variable during rendering which is hard to follow, this PR makes changes so that a variable that changes during render is no longer needed.

This PR also changes the savedFilter variable in SavedFilterMenuButton to use useRef

**Original Pull Request:** https://github.com/actualbudget/actual/pull/5718 **State:** closed **Merged:** Yes --- <!-- 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. --> The `LineGraph` and `StackedBarGraph` uses a `sumTotals` variable during rendering which is hard to follow, this PR makes changes so that a variable that changes during render is no longer needed. This PR also changes the `savedFilter` variable in `SavedFilterMenuButton` to use `useRef`
GiteaMirror added the pull-request label 2026-04-10 21:48:15 -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#13135