Repository navigation
[WIP][POC] Add useOnyxState multi-key derived state hook - #104690
Draft
fabioh8010 wants to merge 12 commits into
Draft
fabioh8010 wants to merge 12 commits into
fabioh8010 wants to merge 12 commits into
Conversation
Onyx.disconnect() is removed in favor of calling unsubscribe() directly on the Connection returned by connect()/connectWithoutView().
…ct-removal # Conflicts: # src/libs/actions/Link.ts # src/libs/migrations/ConvertGpsPointsTo2DArray.ts # tests/actions/IOUTest/HoldTest.ts
Pins react-native-onyx to the useOnyxState branch head (Expensify/react-native-onyx#862) so the hook can be measured in the App. react-native-nitro-sqlite moves 9.8.3 -> 10.2.0 in the same commit: Onyx 3.0.121 raised that peer to ^10.2.0, so either change on its own fails ERESOLVE. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
|
42 tasks
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…ct-removal # Conflicts: # package-lock.json # package.json # src/setup/addUtilsToWindow.ts # tests/unit/DistanceRateTest.ts
…' into feature/onyx-store-useonyxstate-recut
Repins react-native-onyx to the useOnyxState branch head after merging Onyx main into it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Repins react-native-onyx to the useOnyxState branch head. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
45 tasks
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Explanation of Change
POC, not ready for review. Opening it so the branch is visible and CI runs. The rest of this template gets filled when it is.
Pins Onyx to the
useOnyxStatebranch head (Expensify/react-native-onyx#862) so the hook can be measured in the App.Two notes:
react-native-nitro-sqlitegoes 9.8.3 -> 10.2.0 in the same commit. Onyx 3.0.121 raised that peer to^10.2.0, so the pin and the bump cannot land separately: either half on its own failsERESOLVE.mainno longer exportsOnyx.disconnect), so the diff here includes that PR's changes. GitHub cannot base a PR on a branch that lives in the fork.Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari