Disable thennable

This commit is contained in:
Samuel Susla
2022-10-12 14:50:50 +01:00
parent 2cf4352e1c
commit 97b18b696a
2 changed files with 8 additions and 6 deletions
+4 -3
View File
@@ -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
View File
@@ -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 {