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 cd3a22d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-kangaroos-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@preact/signals-react": patch
---

Clean up effect store reference after finishing it
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 cd3a22d

Please sign in to comment.