This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs around unsubscribe and skipping
See #255. @glasser and I found a few bugs around the (old and new) skip options, and wrote some tests to confirm the fixes and stop regressions - didn't delete querySubscription in .unsubscribeFromQuery() - this mean if you skipped and then unskipped, it would break - not checking for querySubscription before .unsubscribe on unmounting - if you skip then unmount, you have problem - check for non-skip -> skip in willReceiveProps didn't return in the remain skipping case - mean "non skipping" code ran when remaining skipping.
- Loading branch information
Showing
3 changed files
with
169 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters