//#region src/server/suspendingReader.d.ts /** * Turns an async loader into a synchronous reader that suspends until the * value is available, without going through `React.use`. * * `React.use` matches its per-component state positionally across suspense * retries, so a `use()` call whose condition can change between attempts * (here: the server context is seeded by the provider concurrently with the * page render) shifts the index and hands a later `use()` — such as the * dynamic dictionary chunk loader — the wrong promise's value. Throwing the * promise ourselves and caching the settlement in a request-scoped store * keeps the suspension mechanics without touching React's positional state, * which makes the ambient chain safe to run conditionally. * * Requires `React.cache` for per-request isolation; without it (React < 19) * the reader reports `undefined` so callers fall back to the default locale, * matching the previous behavior. */ export declare const createSuspendingReader: (load: () => Promise) => (() => T | undefined); //#endregion //# sourceMappingURL=suspendingReader.d.ts.map