Skip to content

Commit

Permalink
Add comment to explain the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-SC committed Oct 31, 2022
1 parent 8eee696 commit 3e65e5a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ describe('ReactOffscreen', () => {

// @gate enableOffscreen
it('nested offscreen does not call componentWillUnmount when hidden', async () => {
// This is a bug that appeared during production test of <unstable_Offscreen />.
// It is a very specific scenario with nested Offscreens. The inner offscreen
// goes from visible to hidden in synchronous update.
class ClassComponent extends React.Component {
render () {
return <Text text="Child" />;
Expand Down

0 comments on commit 3e65e5a

Please sign in to comment.