Repository navigation
[No QA] [Performance] Add write-readiness barrier primitives and pending-write modules #98979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Julesssss
merged 12 commits into
Expensify:main
from
software-mansion-labs:korytko/writewhenready-api-core
Aug 26, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2338dc6
feat: add API.writeWhenReady deferred-write primitive with armed tran…
JakubKorytko e94b748
feat: add pending-write signal modules and write-barrier resolver
JakubKorytko ba0d3aa
fix: address PR review comments on write-barrier lifecycle
JakubKorytko c09e660
test: cover restartPendingSubmitWriteSafetyTimeout
JakubKorytko 590aa46
docs: add Given/When/Then comments to new tests
JakubKorytko 730678d
docs: add Given/When/Then comments across write-barrier tests
JakubKorytko ca251cb
fix: consume search signal at write-barrier release, and on retries
JakubKorytko 8d2e815
fix: scope search-signal consumption by generation and cover the abor…
JakubKorytko 72c2a16
style: split semicolon-joined comment sentences
JakubKorytko 1d0a98d
fix: restart search-signal safety timeout when explicit barrier attaches
JakubKorytko 691d7ea
fix: consume search signal when app is already backgrounded
JakubKorytko ad7cd65
docs: tighten comments and fix inaccurate claims flagged in review
JakubKorytko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/libs/Navigation/helpers/markPendingWriteForSearchPage.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import {markPendingSearchWrite} from '@libs/pendingSearchWrite'; | ||
|
|
||
| import isReportTopmostSplitNavigator from './isReportTopmostSplitNavigator'; | ||
|
|
||
| /** | ||
| * Marks Search's pending-write signal when this submit started from the FAB and isn't inside a | ||
| * report - meaning it's landing on Search - so the write waits until Search's skeleton is | ||
| * replaced by real content before applying its optimistic data. | ||
| */ | ||
| function markPendingWriteForSearchPage(isFromGlobalCreate: boolean) { | ||
| if (!isFromGlobalCreate || isReportTopmostSplitNavigator()) { | ||
| return; | ||
| } | ||
| markPendingSearchWrite(); | ||
| } | ||
|
|
||
| export default markPendingWriteForSearchPage; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
armed holds a Promise, not a bool, so isArmed felt like the wrong name. Kept armed, open to armedPromise if you still think it's better