Skip to content

Fix Onyx.mergeCollection doesn't update subscribers - #57

Merged
Julesssss merged 4 commits into
masterfrom
marcaaron-updateIndividualSubscribers
Apr 1, 2021
Merged

Julesssss merged 4 commits into
masterfrom
marcaaron-updateIndividualSubscribers

Conversation

@marcaaron

@marcaaron marcaaron commented Apr 1, 2021 •

Copy link
Copy Markdown
Contributor

Details

When we implemented the mergeCollection() feature we only set it up so that it would update subscribers of the collection key and not any individual subscribers. This prevents any components that are subscribing to an individual key from updating when mergeCollection() is called. So e.g. a component subscribing to report_ would have gotten an update but a component subscribing to report_123 would not.

cc @Julesssss

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/159086

Tests

Added a unit test to verify this is working and also updates individual subscribers to collection keys when we call mergeCollection().

@marcaaron marcaaron self-assigned this Apr 1, 2021
@marcaaron
marcaaron marked this pull request as ready for review April 1, 2021 16:56
@marcaaron
marcaaron requested a review from a team as a code owner April 1, 2021 16:56
@MelvinBot
MelvinBot requested review from pecanoro and removed request for a team April 1, 2021 16:56
@marcaaron
marcaaron requested review from a team and Julesssss and removed request for pecanoro April 1, 2021 16:56
@MelvinBot
MelvinBot requested review from pecanoro and removed request for a team April 1, 2021 16:57
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