Skip to content

Commit 152bf07

Browse files
authored
Do not assert current identity in dispatchAction (#51)
1 parent 9f0fde2 commit 152bf07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internals/dispatcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function dispatchAction<A>(
250250
queue: UpdateQueue<A>,
251251
action: A
252252
) {
253-
if (componentIdentity === getCurrentIdentity()) {
253+
if (componentIdentity === currentIdentity) {
254254
// This is a render phase update. Stash it in a lazily-created map of
255255
// queue -> linked list of updates. After this render pass, we'll restart
256256
// and apply the stashed updates on top of the work-in-progress hook.

0 commit comments

Comments
 (0)