Skip to content

Have Onyx.clear() properly call collection callbacks which use waitForCollectionCallback - #216

Merged
amyevans merged 7 commits into
mainfrom
tgolen-fix-onyx-collection-clear
Dec 14, 2022
Merged

Have Onyx.clear() properly call collection callbacks which use waitForCollectionCallback#216
amyevans merged 7 commits into
mainfrom
tgolen-fix-onyx-collection-clear

Conversation

@tgolen

@tgolen tgolen commented Dec 14, 2022

Copy link
Copy Markdown
Collaborator

Related Issues

Fixes Expensify/App#13584

Automated Tests

Covered in unit tests

Linked PRs

The version will be updated in the PR for Expensify/App#11671

@tgolen
tgolen requested a review from yuwenmemon December 14, 2022 16:29
@tgolen
tgolen requested a review from a team as a code owner December 14, 2022 16:29
@tgolen tgolen self-assigned this Dec 14, 2022
@melvin-bot
melvin-bot Bot requested review from amyevans and removed request for a team December 14, 2022 16:30
yuwenmemon
yuwenmemon previously approved these changes Dec 14, 2022

@yuwenmemon yuwenmemon 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, thanks for figuring out this wrinkle!

amyevans
amyevans previously approved these changes Dec 14, 2022

@amyevans amyevans 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.

NAB: I see there's documentation for notifySubscribersOnNextTick in API.md, is it worth it to add notifyCollectionSubscribersOnNextTick there as well?

@tgolen
tgolen dismissed stale reviews from amyevans and yuwenmemon via ca34f3a December 14, 2022 19:46
@tgolen

tgolen commented Dec 14, 2022

Copy link
Copy Markdown
Collaborator Author

Sure! I can rebuild the documentation.

Updated! There were a few more changes to the documentation that it grabbed which should be fine.

@amyevans amyevans 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.

Awesome, looks good!

@amyevans
amyevans merged commit af02f32 into main Dec 14, 2022
@amyevans
amyevans deleted the tgolen-fix-onyx-collection-clear branch December 14, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling Onyx.clear() does not send the right data to collection callbacks using waitForCollectionCallback

3 participants