Skip to content

Commit ac57fe9

Browse files
committed
FY-215/refactor: remain observedBits
1 parent 41ffe6e commit ac57fe9

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

srcs/context/newContext.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ const prepareToReadContext = (workInProgress, renderExpirationTime) => {
224224
/**
225225
*
226226
* @param {Tcontext} context
227-
* @param {number} observedBits
228227
*
229228
* @description - readContext의 목표는 context 값을 읽는 것입니다.
230229
* 이 함수에서 context의 값을 읽습니다.

srcs/hooks/useContext/useContext.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import hookCore from "../core/hookCore.js";
99
* @description This function is useContext hook.
1010
*
1111
* @param {TContext} context
12-
* @param {number | undefined} observedBits
1312
*/
1413
const useContext = (context) => {
1514
return hookCore.RfsCurrentDispatcher.current.useContext(context);

srcs/work/beginWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ const updateContextConsumer = (current, workInProgress, renderExpirationTime) =>
346346
prepareToReadContext(workInProgress, renderExpirationTime);
347347

348348
// readContext를 통해 context 값을 가져옵니다.
349-
const newValue = readContext(context, newProps.unstable_observedBits);
349+
const newValue = readContext(context);
350350

351351
// child component를 context의 값을 넣어 호출합니다.
352352
const newChildren = render(newValue);

type/TContextItem.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
* @typedef {Object} TContextItem
33
*
44
* @property {TContext} context
5-
* @property {number} observedBits
65
* @property {TContextItem | null} next
76
*/
87
const TContextItem = {
98
context,
10-
observedBits: 0,
119
next: null,
1210
};

type/THookUpdate.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88
const ThookUpdate = {
99
expirationTime: 0,
10-
suspenseConfig: null,
1110
action: null,
1211
eagerReducer: null,
1312
eagerState: null,

0 commit comments

Comments
 (0)