File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/react-devtools-shared/src/backend/fiber Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2035,10 +2035,10 @@ export function attach(
20352035 // Detect the shape of useState() / useReducer() / useTransition() / useSyncExternalStore() / useActionState()
20362036 const isStatefulHook =
20372037 prev.isStateEditable === true ||
2038- prev.dispatcherHookName === 'SyncExternalStore' ||
2039- prev.dispatcherHookName === 'Transition' ||
2040- prev.dispatcherHookName === 'ActionState' ||
2041- prev.dispatcherHookName === 'FormState';
2038+ prev.name === 'SyncExternalStore' ||
2039+ prev.name === 'Transition' ||
2040+ prev.name === 'ActionState' ||
2041+ prev.name === 'FormState';
20422042
20432043 // Compare the values to see if they changed
20442044 if (isStatefulHook) {
You can’t perform that action at this time.
0 commit comments