-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds LifecycleOwnerWrapper for use-live-data
Summary: This is the rework of D54364594. One of reasons we need to add a wrap is because we added default lifecycle owner to BaseMountingView(D56757176) and would like to use it for useLiveData, but useLiveData may be called before the view is attached. Adding a default wrapper could solve this issue. In this case, we need to set LifecycleOwnerWrapper as a TreeProp to all ComponentTree rather than only root ComponentTree Reviewed By: adityasharat Differential Revision: D57863409 fbshipit-source-id: 1ba68f8508dca325bbc0ca7b3885f864d2740ec8
- Loading branch information
1 parent
2adc8e6
commit e9d8aa2
Showing
6 changed files
with
210 additions
and
17 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
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