MCPcopy Create free account
hub / github.com/react-static/react-static / getData

Method getData

packages/react-static/src/index.d.ts:558–558  ·  view source on GitHub ↗

* An async function that returns or resolves an object of any necessary data * for this route to render. * * @template T type of the route data * @param {Route} resolvedRoute This is the resolved route this function is handling. * @param {RouteFlags} flags An object of flags and meta

(resolvedRoute: Route, flags: RouteFlags)

Source from the content-addressed store, hash-verified

556 * @returns {T | Promise<T>} the route data
557 */
558 getData?(resolvedRoute: Route, flags: RouteFlags): Promise<object> | object
559
560 replace?: boolean
561}

Callers 1

getRouteDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected