-
Notifications
You must be signed in to change notification settings - Fork 89
Bugfix/use onyx infinite loading collection #673
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1377,7 +1377,7 @@ function subscribeToKey<TKey extends OnyxKey>(connectOptions: ConnectOptions<TKe | |
| // since there are none matched. In withOnyx() we wait for all connected keys to return a value before rendering the child | ||
| // component. This null value will be filtered out so that the connected component can utilize defaultProps. | ||
| if (matchingKeys.length === 0) { | ||
| if (mapping.key && !isCollectionKey(mapping.key)) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kacper-mikolajczak I think we should still keep the mapping.key check
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've traced down what Do you think we should not be able to add If yes, what do you think of moving this check into There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
nullishStorageKeys is to save the key that its value is nullish. In case the key is nullish and I think we should not add it to nullishStorageKeys
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer to keep it as before (keeping mapping.key check). It will be safer
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done ✅ |
||
| if (mapping.key) { | ||
| cache.addNullishStorageKey(mapping.key); | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.