-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update firestore listener when props change (#10)
* Adds componentWillReceiveProps lifecycle method; adds tests * Just resets `isLoading` state; wraps unsubscribe in an if, following the unmount lifecycle pattern * WIP: updating tests for full coverage * Finishes updating tests * Adds lodash.isEqual for deep equality check * Finishes adding tests * Removes lodash dependency in favor of custom array comparison helper
- Loading branch information
1 parent
78787c9
commit 48cb1bf
Showing
6 changed files
with
561 additions
and
8 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
Oops, something went wrong.