Skip to content

Commit

Permalink
Cleanup effect store reference after using it
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jul 14, 2023
1 parent 59115d9 commit a29b9e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/runtime/src/auto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function installCurrentDispatcherHook() {
isExitingComponentRender(currentDispatcherType, nextDispatcherType)
) {
store?.f();
store = null;
}
},
});
Expand Down

0 comments on commit a29b9e3

Please sign in to comment.