-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
useFragmentInternal should suspend if environment changes and there i…
…s a query in flight Summary: There is a bug in the new hooks implementation, where the `useFragmentInternal` would not suspend after the change of the environment (while the fragment selector are the same) with the active operation in flight. This diff fixes that by checking if the environment has changed and we would throw the promise for pending operation in flight. Reviewed By: voideanvalue Differential Revision: D52516772 fbshipit-source-id: 13a61114e6b7718af548cf45d2e4685bcd121993
- Loading branch information
1 parent
1972913
commit aac57b3
Showing
2 changed files
with
28 additions
and
0 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