mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Disable thennable
This commit is contained in:
+4
-3
@@ -246,9 +246,10 @@ export function finishHooks(
|
||||
}
|
||||
|
||||
export function getThenableStateAfterSuspending(): null | ThenableState {
|
||||
const state = thenableState;
|
||||
thenableState = null;
|
||||
return state;
|
||||
return null;
|
||||
// const state = thenableState;
|
||||
// thenableState = null;
|
||||
// return state;
|
||||
}
|
||||
|
||||
export function checkDidRenderIdHook(): boolean {
|
||||
|
||||
+4
-3
@@ -40,9 +40,10 @@ export function prepareToUseHooksForComponent(
|
||||
}
|
||||
|
||||
export function getThenableStateAfterSuspending(): null | ThenableState {
|
||||
const state = thenableState;
|
||||
thenableState = null;
|
||||
return state;
|
||||
return null;
|
||||
// const state = thenableState;
|
||||
// thenableState = null;
|
||||
// return state;
|
||||
}
|
||||
|
||||
function readContext<T>(context: ReactServerContext<T>): T {
|
||||
|
||||
Reference in New Issue
Block a user