[PR #1061] [MERGED] Use the useLiveQuery hook in a couple more places #3495

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1061
Author: @j-f1
Created: 5/25/2023
Status: Merged
Merged: 5/25/2023
Merged by: @j-f1

Base: masterHead: jed/use-live-query


📝 Commits (2)

  • 62e812f Use the useLiveQuery hook in a couple more places
  • 44d5bc2 Create 1061.md

📊 Changes

5 files changed (+16 additions, -38 deletions)

View changed files

📝 packages/desktop-client/src/components/NotesButton.tsx (+1 -1)
📝 packages/loot-core/src/client/data-hooks/accounts.tsx (+4 -18)
📝 packages/loot-core/src/client/data-hooks/payees.tsx (+4 -18)
📝 packages/loot-core/src/client/query-hooks.tsx (+1 -1)
upcoming-release-notes/1061.md (+6 -0)

📄 Description

As you can see, this removes a bit of boilerplate. I looked at the other places that call liveQuery now, and they don’t seem very easy to covert to the hook so I left them alone for now.


🔄 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/1061 **Author:** [@j-f1](https://github.com/j-f1) **Created:** 5/25/2023 **Status:** ✅ Merged **Merged:** 5/25/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `jed/use-live-query` --- ### 📝 Commits (2) - [`62e812f`](https://github.com/actualbudget/actual/commit/62e812f5655c525805eca2316e6502217d17ed77) Use the useLiveQuery hook in a couple more places - [`44d5bc2`](https://github.com/actualbudget/actual/commit/44d5bc23c8cd1c3c97ca8e2b68ea7187b272948b) Create 1061.md ### 📊 Changes **5 files changed** (+16 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/NotesButton.tsx` (+1 -1) 📝 `packages/loot-core/src/client/data-hooks/accounts.tsx` (+4 -18) 📝 `packages/loot-core/src/client/data-hooks/payees.tsx` (+4 -18) 📝 `packages/loot-core/src/client/query-hooks.tsx` (+1 -1) ➕ `upcoming-release-notes/1061.md` (+6 -0) </details> ### 📄 Description As you can see, this removes a bit of boilerplate. I looked at the other places that call `liveQuery` now, and they don’t seem very easy to covert to the hook so I left them alone for now. --- <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:42:29 -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#3495