mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Disable thennable
This commit is contained in:
2 files changed
+8
-6
No files matched your search
+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