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.
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
[No QA] [TS Migration] Standardize approach to Onyx pendingFields #34799
[No QA] [TS Migration] Standardize approach to Onyx pendingFields #34799
Changes from 11 commits
3d3aeaa
3a42ec7
4a1c14e
284d119
3bce79c
4aaad12
abed5f1
25552df
60fe816
809707a
8682a4d
66808bf
aa6e0e3
c028794
648e293
a8e53ff
5886dcb
97bba27
98925a5
187ffd9
d559b2e
4578ca8
f0bb6ed
3b5834f
939a88c
fc6c412
8163d2c
7d5e4e8
f52baac
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Sorry, I'm confused what the 2nd template argument for
OnyxValueWithOfflineFeedback
is for. Could you help explain? Maybe a README example here could be helpful too?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.
2nd template argument for
OnyxValueWithOfflineFeedback
are additional keys to be provided as keys forpendingFields
. So these keys'defaultLogin' | 'validateLogin' | 'addedLogin' | 'deletedLogin'
are outside of the Login model, but can be in pendingFields keys.So for example,
validateLogin
can be used in pendingFields keys, but it doesn't exist in the Login modelApp/src/libs/actions/User.ts
Lines 379 to 381 in ba7f01d
That's also was explained in this comment in 1st variant of implementation section.
Maybe it will be better to add a clarifying comment right next to the OnyxValueWithOfflineFeedback type, this way it should be easy to find and helpful.
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.
@roryabraham Bump for reviewing
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.
thanks for explaining