Compare commits

...

1 Commits

Author SHA1 Message Date
Samuel Susla
97b18b696a Disable thennable 2022-10-12 14:50:50 +01:00
2 changed files with 8 additions and 6 deletions

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 {

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 {