Skip to content

Commit dfd14b6

Browse files
committed
Fixed bug where traverseHooks function was not entering condition to push onto hooksStates by removing 2 lines that were checking for properties that no longer exist on the fiber node object
1 parent 2f5c1f2 commit dfd14b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/linkFiber.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ function traverseHooks(memoizedState: any): HookStates {
139139
while (memoizedState && memoizedState.queue) {
140140
if (
141141
memoizedState.memoizedState
142-
&& memoizedState.queue.lastRenderedReducer
143-
&& memoizedState.queue.lastRenderedReducer.name === 'basicStateReducer'
144142
) {
145143
hooksStates.push({
146144
component: memoizedState.queue,

0 commit comments

Comments
 (0)