[PR #7809] [MERGED] clean up GoCardless bank factory loading process #77389

Closed
opened 2026-05-16 19:16:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7809
Author: @matt-fidd
Created: 5/12/2026
Status: Merged
Merged: 5/14/2026
Merged by: @matt-fidd

Base: masterHead: bank-tla


📝 Commits (2)

📊 Changes

2 files changed (+8 additions, -12 deletions)

View changed files

📝 packages/sync-server/src/app-gocardless/bank-factory.js (+2 -12)
upcoming-release-notes/7809.md (+6 -0)

📄 Description

Description

Hit this on my server after #7702. Bundling sync-server into a single chunk (which I had to do to work around a cyclic import deadlock on illumos) crashes with Cannot access X before initialization. Something about the top level await was letting them be evaluated before they were loaded (wording up for debate...) and was failing with "cannot access before initialisation".

Technically this adds to the startup time, but it's absolutely minuscule and cleans up a bit of a smell here anyway.

Testing

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

🔄 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/7809 **Author:** [@matt-fidd](https://github.com/matt-fidd) **Created:** 5/12/2026 **Status:** ✅ Merged **Merged:** 5/14/2026 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `bank-tla` --- ### 📝 Commits (2) - [`18f5e1a`](https://github.com/actualbudget/actual/commit/18f5e1a1c74051c8a1043fe49501e149da5f186a) remove TLA in bank-factory - [`6a92ed6`](https://github.com/actualbudget/actual/commit/6a92ed69b57f2248d704fe1c3c58be93dcae6063) note ### 📊 Changes **2 files changed** (+8 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/sync-server/src/app-gocardless/bank-factory.js` (+2 -12) ➕ `upcoming-release-notes/7809.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://actualbudget.org/docs/contributing/#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## Description <!-- What does this PR do? Why is it needed? Please give context on the "why?": why do we need this change? What problem is it solving for you?--> Hit this on my server after #7702. Bundling sync-server into a single chunk (which I had to do to work around a cyclic import deadlock on illumos) crashes with Cannot access X before initialization. Something about the top level await was letting them be evaluated before they were loaded (wording up for debate...) and was failing with "cannot access before initialisation". Technically this adds to the startup time, but it's absolutely minuscule and cleans up a bit of a smell here anyway. ## Related issue(s) <!-- e.g. Fixes #123, Relates to #456 --> ## Testing <!-- What did you test? How can we reproduce the issue you are fixing or how can we test the feature you built? --> ## Checklist - [x] Release notes added (see link above) - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed <!--- actual-bot-sections ---> --- <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-05-16 19:16:43 -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#77389