Skip to content

docs: add MSP async data access pattern doc - #2691

Merged
sensei-hacker merged 1 commit into
iNavFlight:maintenance-10.xfrom
sensei-hacker:docs-extract-msp-async-pattern
Jul 21, 2026
Merged

docs: add MSP async data access pattern doc#2691
sensei-hacker merged 1 commit into
iNavFlight:maintenance-10.xfrom
sensei-hacker:docs-extract-msp-async-pattern

Conversation

@sensei-hacker

Copy link
Copy Markdown
Member

Summary

Adds a developer-docs pattern doc for a recurring async-race bug shape: MSP data accessed before its load callback fires, or two independent load chains racing each other before touching the same result.

Uses the OSD tab's OSD.reload() / OSD.GUI.updateAll() chain as a worked, verified-against-current-source example (custom OSD elements + Logic Conditions "configured" mask both loading before createCustomElements() runs, getLCoptions() guarding on the mask).

Test plan

  • Verified every cited function/property against current tabs/osd.js and js/msp/MSPHelper.js source (not just the original draft's claims)
  • Docs-only change, no functional code touched

Documents a recurring async-race bug shape (MSP data accessed before its
load callback fires, or two independent load chains racing each other)
using the real fix in tabs/osd.js's OSD.reload()/OSD.GUI.updateAll() chain
as a worked example.
@qodo-code-review

Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@sonarqubecloud

Copy link
Copy Markdown

@sensei-hacker
sensei-hacker merged commit a11c2f0 into iNavFlight:maintenance-10.x Jul 21, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown

Configurator test build ready — commit 31ef5e5

Download build artifacts for PR #2691

Available platforms (scroll to the Artifacts section at the bottom of the run page):

  • Windows x64 (ZIP, MSI) and x32 (ZIP, MSI)
  • macOS arm64 (ZIP, DMG) and x64 (ZIP, DMG)
  • Linux x64 (DEB, RPM, ZIP) and aarch64 (DEB, RPM, ZIP)

A GitHub login is required to download artifacts. Build is for testing only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant