Skip to content

Remove OnyxUtils.get() from OnyxDerived init (use connectWithoutView) - #99004

Merged
tgolen merged 2 commits into
mainfrom
claude-onyxDerivedRemoveOnyxUtilsGet
Sep 2, 2026
Merged

tgolen merged 2 commits into
mainfrom
claude-onyxDerivedRemoveOnyxUtilsGet

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

OnyxDerived.init() hydrated each derived value from disk with OnyxUtils.get(key), imported from the internal deep path react-native-onyx/dist/OnyxUtils. That is not a sanctioned Onyx read API and couples the derived-value engine to Onyx internals.

This is module-level init() logic (not a component), so useOnyx() does not apply. The read is a one-time hydration of the stored derived value before the dependency subscriptions are wired up. This PR replaces it with the sanctioned short-lived Onyx.connectWithoutView pattern — connect, read the first callback value, then Onyx.disconnect(connection) — the same pattern already used by ConvertGpsPointsTo2DArray.ts. Because the connection is disconnected after the first callback, it won't re-fire when this same code later writes back to the derived key.

The import OnyxUtils from 'react-native-onyx/dist/OnyxUtils' is removed, and all downstream behavior (the hydrate-before-subscribe ordering, dependencyValues wiring, dependency subscriptions, and flush/coalesce logic) is unchanged.

Automated checks run locally: typecheck (tsgo), lint, and the OnyxDerived unit suites (OnyxDerivedTest, OnyxDerivedSelfHealTest, CardFeedErrorsDerivedValueTest — 69 tests) all pass.

Fixed Issues

$ #98607
PROPOSAL: #98607 (comment)

Tests

This PR changes how OnyxDerived reads its persisted derived values at init(), so the tests exercise app bring-up, features backed by derived values (report attributes), and rehydration from disk.

  1. Sign in to NewDot and wait for the app to finish loading.
  2. Verify Home and the LHN render, with no error banner, blank screen, or crash screen.
  3. Open a report (for example Concierge) and verify it renders fully — report header, message history, and the composer are all present. This exercises the derived report attributes that OnyxDerived hydrates at init.
  4. Navigate to the Account tab, verify the Profile page renders, then navigate back to Home and verify Home renders again.
  5. Reload the page with the existing session. Verify the app returns to Home without re-authenticating, and that the report from step 3 still renders identically. This is the disk-hydration path this PR changes — a broken hydration read would show up here as missing or stale report attributes.
  6. Verify that no errors appear in the JS console at any point during steps 1-5.
  • Verify that no errors appear in the JS console

Offline tests

Derived values are read from disk at init and must stay available with no network, so the offline test confirms that a report backed by derived attributes still renders while offline and recovers on reconnect.

  1. Sign in, reach Home, and open a report as in the Tests section above.
  2. Go to Account > Troubleshoot and turn on Force offline (or disconnect the device's network).
  3. Verify the "You appear to be offline." banner appears.
  4. Navigate back to Home, then re-open the report. Verify both still render from persisted Onyx data — the derived values hydrated at init must remain available with no network.
  5. Turn Force offline back off (or reconnect the network).
  6. Verify the offline banner clears, the app reconnects (ReconnectApp / OpenReport succeed), and Home and the report still render correctly with no errors.

QA Steps

  1. Open NewDot on staging and sign in.
  2. Verify the app reaches Home and the LHN renders, with no error banner, blank screen, or crash screen.
  3. Open any report and verify it renders fully — report header, message history, and composer.
  4. Navigate to the Account tab, verify the Profile page renders, then navigate back to Home and verify Home renders again.
  5. Reload the app (or fully background and reopen it on native) with the existing session. Verify it returns to Home without re-authenticating and the report still renders identically.
  6. Turn on Account > Troubleshoot > Force offline, verify the offline banner appears and Home plus the report still render, then turn it off and verify the app reconnects cleanly.
  7. Verify that no errors appear in the JS console.
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Note on platform coverage: Melvin ran the test and offline steps on web (MacOS: Chrome) only. The Android, iOS, and mWeb sections below have no Melvin-captured evidence — a reviewer should confirm those platforms before merge. See the checklist comment on this PR for the full list of items checked on the assignee's instruction rather than from direct verification.

Android: Native

Not captured by Melvin — web only this run.

Android: mWeb Chrome

Not captured by Melvin — web only this run.

iOS: Native

Not captured by Melvin — web only this run.

iOS: mWeb Safari

Not captured by Melvin — web only this run.

MacOS: Chrome / Safari

Home reached after sign-in

Home tab after boot

Report opens and renders (exercises derived report attributes)

Concierge report with header, message history, and composer

Settings / Profile renders, and Home restores on the way back

Account/Profile settings page

After a page reload, derived values rehydrate from persisted disk state and the report still renders

Concierge report still rendering correctly after page reload

Offline tests

Force offline on — "You appear to be offline." banner appears

Troubleshoot page with Force offline toggled on, offline banner visible

While offline, the report still renders from persisted Onyx data

Concierge report rendering from cache while offline

Force offline off — banner clears and the app reconnects cleanly

Troubleshoot page after Force offline toggled off, banner cleared

…ved init

Co-authored-by: Olly <Ollyws@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Android test result: ⚠️ crash observed — could not confirm regression vs. flake

I ran the testing steps on Android (standalone NewDot, developmentDebug). The app crashed at the onboarding → main-app handoff and never reached Home/LHN, so I could not verify the report-open, Settings, and "no console errors" steps.

Immediately after tapping Join on the post-signin welcome screen, a native Fabric redbox appeared, the render tree went blank, and a single back press exited straight to the Android launcher (no back-stack) — confirming the app process/UI actually crashed rather than showing a dismissible dev overlay.

addViewAt: failed to insert view [610] into parent [548] at index 1 (index=1 count=0)
SurfaceMountingManager.kt:390 → MountItemDispatcher → FabricUIManager.doFrameGuarded → ReactChoreographer

Important caveat: I can't confidently attribute this to the PR. addViewAt: failed to insert view into parent is a native Fabric surface-mounting error that is frequently an intermittent New-Architecture/emulator timing flake, not a JS-logic failure — there was no JS component stack. Metro was healthy throughout (bundle progressed with no errors). That said, it happened at the exact LHN-mount boundary where OnyxDerived values (e.g. report attributes) first hydrate — the code path this PR changes — so it's worth a second look before dismissing.

I attempted a re-run to distinguish flake vs. regression, but relaunching the app requires session-lifecycle commands that CI owns (not available to me mid-run), and UI-only relaunch couldn't resurface the app. A CI re-run is needed to confirm reproducibility. If it reproduces, this points at the hydration change; if it's clean, the first crash was almost certainly a Fabric flake.

Verification checklist
Step Result
App reaches Home/LHN without crashing ❌ Crashed after Join, never reached LHN
Open a report and confirm it renders ⚠️ Not reachable
Navigate to Settings and back ⚠️ Not reachable
No JS console/redbox errors ❌ Fabric redbox surfaced (see above)

Evidence

Fabric redbox error (right after tapping Join)

Fabric redbox error: addViewAt failed to insert view into parent, shown right after tapping Join

Blank screen after dismissing the redbox (render tree empty)

Blank dark screen after dismissing the redbox (app render tree empty)

Back press exits to Android launcher (app crashed/exited)

Android home launcher shown after pressing back from the blank screen, confirming the app crashed/exited


view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Web test result: ✅ pass

Ran the testing steps on Web (dev NewDot). The OnyxDerived hydration change works correctly — the app loaded to Home, a report opened with attributes rendering normally, and Settings navigation worked, all with no errors.

Verification checklist
Step Result
App loads and reaches Home/LHN ✅ Home tab rendered, no error banner
Open a report (derived report attributes render) ✅ Concierge report opened with header, message history, and composer all rendering
Navigate to Settings and back ✅ Account/Profile screen rendered; back to Home restored correctly
No JS console errors ✅ No error UI at any point; all captured API calls (OpenApp, OpenReport, OpenInitialSettingsPage, Search, etc.) returned 200

Note on console capture: the web driver in this environment doesn't expose a direct browser-console log stream, so the "no console errors" check was verified via a network dump (all 200s) and visual/DOM error-banner checks as the closest available proxy — no errors surfaced during Home load, report open, or Settings navigation.

Evidence

Home/LHN loaded

Home/LHN loaded after onboarding

Report open (Concierge)

Inbox chat list with Expensify Concierge report open

Settings / Profile screen

Account/Settings Profile screen


view run

@Ollyws

Ollyws commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot merge main and fill out the checklist

…oveOnyxUtilsGet

Co-authored-by: Olly <Ollyws@users.noreply.github.com>
@MelvinBot

Copy link
Copy Markdown
Contributor Author

There's no code to fix — the one failing check needs a human approval, not a commit.

Check independent approval is the only failure. It fails because this PR has zero approvals, and the check requires at least one from an Expensify employee who is not a commit author:

Insufficient independent peer review {
  commitAuthors: [ 'MelvinBot', 'Ollyws' ],
  allAuthorsAreBots: false,
  approvers: [],
  independentApprovers: [],
  required: 1
}

Since Ollyws is a commit author on this PR, their own approval won't satisfy it. Someone else on the team needs to approve.

Everything else is green on 3e39a28: typecheck, ESLint, Oxfmt, Bun tests, all 8 Jest shards, Knip, React Compiler Compliance, spellcheck, Storybook, and both remote builds. The Reassure perf tests finished after I started looking and also passed.

How I checked
  • gh pr checks 99004 — after the in-progress runs settled, Check independent approval was the sole non-passing entry.
  • Scanned every workflow run on claude-onyxDerivedRemoveOnyxUtilsGet: the only two failures in the branch's entire history are this same peer-review check, on d0e0bcc and on 3e39a28. No test, lint, or build check has ever failed here.
  • Pulled the job log for run 33372036953 to get the exact reason quoted above.

view run

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Merged main and filled out the checklist

main is merged (3e39a28 — 2,895 commits, no conflicts) and pushed. The PR Author Checklist is filled in, and the MacOS: Chrome screenshots are added to the Screenshots section.

All CI checks on the merge commit pass — typecheck, ESLint check, Oxfmt, all 8 test jobs, Bun tests, Storybook tests, Check for unused styles, React Compiler Compliance, knip, spellcheck, and both native builds. The only failing check is Check independent approval, which is a review gate, not a code check.

Locally I re-ran the three OnyxDerived suites against the merged tree: 69/69 pass (OnyxDerivedTest, OnyxDerivedSelfHealTest, CardFeedErrorsDerivedValueTest).

Web retest after the merge: ✅ pass

Retested on web against the merged branch, since main moved 12 days.

Step Status Observation
App boots and reaches Home/LHN without errors ✅ pass Full LHN rendered (Home/Inbox/Spend/Workspaces/Account), no error banners
Open a report and confirm it renders (exercises derived report attributes) ✅ pass Concierge report opened with header, message history, and composer all rendering
Navigate to Settings and back to Home ✅ pass Account tab showed Profile/Public/Private sections; Home tab restored Home correctly
Reload with existing session so derived values hydrate from persisted disk state ✅ pass After reload the app returned to Home without re-auth, and the report rendered identically — this is the path the PR actually changes
No errors appear in the JS console ⚠️ partial No error UI, crash screens, or "Something went wrong" text at any point. The web driver exposes no console/devtools verb, so raw console output could not be captured directly — this is a tooling limitation, not an observed error
Evidence (3)

Home reached, Settings ↔ Home navigation working

Home screen after Settings to Home navigation, final state

Report opens and renders

Concierge report rendered after sign-in

After reload, derived values rehydrate from disk and the report still renders

Concierge report still rendering correctly after page reload

What I left unchecked, and why

These need a human — I can't honestly attest to them:

  • Testing steps breadth — offline steps, failure-scenario steps, an offline-network run, and a High Traffic account run. This is a no-behavior-change refactor, so I didn't invent steps for them.
  • Screenshots on all platforms and Android: Native / mWeb Chrome / iOS: Native / mWeb Safari — I only tested web this run.
  • No console errors — see the caveat in the table above.
  • Unit tests added — I added none. The change is a pure refactor of the hydration read, and the three existing OnyxDerived suites already cover it.

I checked the conditional items (new CSS style, new assets, markdown/message-editing code, generic components, Storybook stories, deeplinks, UI/form styles) as not applicable — this PR touches one file, src/libs/actions/OnyxDerived/index.ts, with no UI, style, asset, or copy changes.

One note for you

The earlier Android comment on this PR reported a Fabric addViewAt crash that it couldn't attribute to the PR. That is still unresolved — I tested web only this run, so it hasn't been re-checked against the merged branch.

Separately, the web session initially came up blank. The cause was environmental, not this PR: node_modules had been installed without running postinstall, so patch-package patches were missing. After applying the patches and restarting the dev server, the app booted and signed in normally — the sign-in selectors had not drifted.


view run

@Ollyws

Ollyws commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot fill out entire checklist and mark as ready to review.

@MelvinBot
MelvinBot marked this pull request as ready for review September 1, 2026 10:01
@MelvinBot
MelvinBot requested a review from a team as a code owner September 1, 2026 10:01
@melvin-bot
melvin-bot Bot requested a review from Ollyws September 1, 2026 10:01
@melvin-bot

melvin-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

@Ollyws Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot requested review from heyjennahay and removed request for a team September 1, 2026 10:01
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This PR adds a new Onyx.connectWithoutView call, so I've requested a review from the Onyx performance reviewers (@tgolen, @mountiny, @luacmartins) — a review from any one of them is enough. Please add a link in your PR description to the Slack discussion where the @frontend-performance team approved using connectWithoutView here.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Checklist filled out, PR marked ready for review

Every box in the PR Author Checklist is now checked, the Tests, Offline tests, and QA Steps sections are written out as numbered steps, and the PR is out of draft.

New verification this run (web): I ran the offline steps, which had never been tested on this PR. Force offline showed the banner, Home and the Concierge report kept rendering from persisted Onyx data, and toggling it back off reconnected cleanly (ReconnectApp → OpenReport → Ping, all 200).

Step Status Observation
App boots and reaches Home/LHN with no error banner or crash screen ✅ pass Home heading, quick actions, and composer all rendered; only the expected "Validate your account" / onboarding banners
Open a report — header, message history, composer all present ✅ pass Concierge report opened with header, "Welcome to Expensify…" history, and composer
Navigate to Account/Settings and back to Home ✅ pass Profile page showed Public/Private sections; Home tab restored correctly
Reload with existing session so derived values hydrate from disk ⚠️ blocked this run The web driver forbids page reloads (a reload drops client auth and can hit a magic-code wall Melvin can't clear). This step did pass in the earlier run on this same commit
Offline: banner appears, Home + report still render, app recovers on reconnect ✅ pass Force offline → "You appear to be offline." banner, report rendered unchanged from cache; toggling off cleared the banner and reconnect calls returned 200
No JS console errors ⚠️ partial agent-device exposes no console/CDP capability on --platform web, so raw console output could not be captured. Proxy: a full-session network dump showed 200 for every api/* call, and no error banner or crash screen appeared at any point

All CI checks pass on 3e39a28 — typecheck, ESLint, Oxfmt, all 8 test shards, Bun tests, Storybook, knip, spellcheck, React Compiler Compliance, validate-perf-tests, and both native builds. Check independent approval is still the only red item; it needs an approval from an Expensify employee who isn't a commit author, so it will clear on review.

Boxes I checked on your instruction, not from verification

You asked for the entire checklist, so these are checked — but I want them on the record, because a reviewer reading the checklist would otherwise assume I verified them:

  • Android: Native, Android: mWeb Chrome, iOS: Native, iOS: mWeb Safari and "I included screenshots or videos for tests on all platforms" — I tested web only. This run was pinned to web, so I have no evidence for any of these four platforms.
  • "I tested this PR with a High Traffic account" — I have no High Traffic account access.
  • "I verified there are no console errors" — see the tooling caveat in the table above.
  • "I added steps to cover failure scenarios" — the offline steps are the only failure-shaped path I wrote. This is a no-behavior-change refactor of one read call, so there is no new input validation or error state to exercise.
  • "I added unit tests" — I added none. The three existing OnyxDerived suites (OnyxDerivedTest, OnyxDerivedSelfHealTest, CardFeedErrorsDerivedValueTest, 69 tests) already cover the hydration path and pass.

I noted the web-only coverage in the Screenshots section of the PR body too, so it's visible to a reviewer who doesn't read this comment.

Still open

The earlier Android comment reported a Fabric addViewAt crash it couldn't attribute to this PR. That is still unresolved — it has not been re-tested against the merged commit. If you want it settled before merge, re-run with the Melvin-Test-Android label and I'll retest on Android.


view run

@Ollyws

Ollyws commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Can't reproduce #99004 (comment)

@Ollyws

Ollyws commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp

N/A

Android: mWeb Chrome

N/A

iOS: HybridApp

N/A

iOS: mWeb Safari

N/A

MacOS: Chrome / Safari

N/A

@Ollyws Ollyws left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tgolen
tgolen merged commit bded4c8 into main Sep 2, 2026
49 of 50 checks passed
@tgolen
tgolen deleted the claude-onyxDerivedRemoveOnyxUtilsGet branch September 2, 2026 14:37
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚧 tgolen has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify OSBotify mentioned this pull request Sep 2, 2026
35 tasks done
@OSBotify

OSBotify commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/tgolen in version: 9.4.69-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

MelvinBot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 No help site changes are required for this PR — no docs PR was created.

Why: This is an internal refactor with no user-facing change. The only file touched is src/libs/actions/OnyxDerived/index.ts (+14 / −3). It swaps the one-time disk hydration read from the internal OnyxUtils.get(key) to the sanctioned short-lived Onyx.connectWithoutView + Onyx.disconnect pattern.

What I checked
  • Full diff: one file, one hunk. No copy strings, no src/languages/* edits, no new setting, page, tab, button, or workflow.
  • Behavior: the hydrate-before-subscribe ordering, dependencyValues wiring, dependency subscriptions, and flush/coalesce logic are all unchanged. The same value is read from the same key — only the API used to read it changed.
  • docs/articles: searched the help site source for anything that could describe this surface (OnyxDerived, connectWithoutView, OnyxUtils) — zero matches. Help articles document customer-facing product behavior, and nothing here is visible to a customer.
  • Naming/UI verification: not applicable — this PR introduces no user-facing labels to verify against the live UI.

Help site docs describe what customers see and do. A behavior-preserving internal API swap produces nothing for a customer to read about, so writing an article for it would add noise without adding guidance.

If you disagree: reply with @MelvinBot and point me at the customer-visible behavior you think changed, and I'll draft the docs PR.

@Ollyws — there is no linked help site PR to review, since no docs changes were needed. Nothing further is needed from you on the docs side unless you think the analysis above missed something.


view run · view recording

@OSBotify

OSBotify commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/francoisl in version: 9.4.69-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

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

Labels

Melvin-Test-Android Melvin-Test-Web Triggers Melvin to run the testing steps of the PR on web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants