Skip to content

Commit 6380fa2

Browse files
Merge pull request #3 from VNguyenCode/hooks
Fixed bug where traverseHooks function was not entering its condition to push onto hooksStates
2 parents 19525f2 + dfd14b6 commit 6380fa2

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
@@ -137,8 +137,6 @@ function traverseHooks(memoizedState: any): HookStates {
137137
while (memoizedState && memoizedState.queue) {
138138
if (
139139
memoizedState.memoizedState
140-
&& memoizedState.queue.lastRenderedReducer
141-
&& memoizedState.queue.lastRenderedReducer.name === 'basicStateReducer'
142140
) {
143141
hooksStates.push({
144142
component: memoizedState.queue,

0 commit comments

Comments
 (0)