MCPcopy
hub / github.com/facebook/react / readPreviousThenableFromState

Function readPreviousThenableFromState

packages/react-server/src/ReactFizzHooks.js:775–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

773}
774
775export function readPreviousThenableFromState<T>(): T | void {
776 const index = thenableIndexCounter;
777 thenableIndexCounter += 1;
778 if (thenableState === null) {
779 return undefined;
780 }
781 return readPreviousThenable(thenableState, index);
782}
783
784function unsupportedRefresh() {
785 throw new Error('Cache cannot be refreshed during server rendering.');

Callers 2

renderSuspenseListFunction · 0.90
retryNodeFunction · 0.90

Calls 1

readPreviousThenableFunction · 0.90

Tested by

no test coverage detected