MCPcopy Create free account
hub / github.com/adobe/react-spectrum / [callbackName]

Function [callbackName]

examples/remix/app/entry.server.tsx:25–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 {
24 bootstrapScriptContent: getLocalizationScript('en'),
25 [callbackName]() {
26 shellRendered = true;
27 const body = new PassThrough();
28 const stream = createReadableStreamFromReadable(body);
29
30 responseHeaders.set('Content-Type', 'text/html');
31 resolve(
32 new Response(stream, {
33 headers: responseHeaders,
34 status: responseStatusCode
35 })
36 );
37
38 pipe(body);
39 },
40 onShellError(error: unknown) {
41 reject(error);
42 },

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected