You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/backend/linkFiber.ts
+4-22Lines changed: 4 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ import updateSnapShotTree from './snapShot';
63
63
64
64
// throttle returns a function that can be called any number of times (possibly in quick succession) but will only invoke the callback at most once every x ms
65
65
// getHooksNames - helper function to grab the getters/setters from `elementType`
// -----------OBTAIN STATE & SET STATE METHODS FOR CLASS COMPONENT------------
416
+
// ----------OBTAIN STATE & SET STATE METHODS FROM CLASS COMPONENT------------
417
417
// Check if node is a stateful class component when user use setState.
418
418
// If user use setState to define/manage state, the state object will be stored in stateNode.state => grab the state object stored in the stateNode.state
419
419
// Example: for tic-tac-toe demo-app: Board is a stateful component that use setState to store state data.
@@ -428,7 +428,7 @@ export function createTree(
428
428
isStatefulComponent=true;
429
429
}
430
430
431
-
// ---------OBTAIN STATE & DISPATCH METHODS FOR FUNCTIONAL COMPONENT---------
431
+
// ---------OBTAIN STATE & DISPATCH METHODS FROM FUNCTIONAL COMPONENT---------
432
432
// REGULAR REACT HOOKS
433
433
lethooksIndex;
434
434
// Check if node is a hooks useState function
@@ -445,12 +445,7 @@ export function createTree(
445
445
// We then store them along with the corresponding memoizedState.queue,
446
446
// which includes the dispatch() function we use to change their state.
0 commit comments