Skip to content

Add waitForCollectionCallback param to Onyx.connect#163

Merged
luacmartins merged 2 commits into
mainfrom
cmartins-addConnectToCollection
Aug 2, 2022
Merged

Add waitForCollectionCallback param to Onyx.connect#163
luacmartins merged 2 commits into
mainfrom
cmartins-addConnectToCollection

Conversation

@luacmartins

@luacmartins luacmartins commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

Details

Adds waitForCollectionCallback as a param to Onyx.connect to trigger a single callback when connecting to a collection

cc @tgolen I found that a connectToCollection method would share most of its logic with connect so I added a param instead of creating a new method.

Related Issues

Expensify/App#10051 (comment)

Automated Tests

Added to tests/unit/onyxTest.js

Linked PRs

Expensify/App#10051

@luacmartins luacmartins self-assigned this Aug 2, 2022
@luacmartins luacmartins marked this pull request as ready for review August 2, 2022 22:13
@luacmartins luacmartins requested a review from a team as a code owner August 2, 2022 22:13
@melvin-bot melvin-bot Bot requested review from arosiclair and removed request for a team August 2, 2022 22:13

@tgolen tgolen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for the tests

@luacmartins

Copy link
Copy Markdown
Contributor Author

Self-merging with approval to unblock Expensify/App#10051

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.

2 participants