@tanstack/solid-start
Version:
Modern and scalable routing for Solid applications
18 lines (17 loc) • 633 B
JavaScript
//#region src/solid-rpc-flight.ts
function createSolidStartFlightMatch(match) {
const flightMatch = {
id: match.id,
status: match.status,
updatedAt: match.updatedAt
};
if ("__beforeLoadContext" in match) flightMatch.beforeLoadContext = match.__beforeLoadContext;
if ("loaderData" in match) flightMatch.loaderData = match.loaderData;
if (match.error !== void 0) flightMatch.error = match.error;
if (match.ssr !== void 0) flightMatch.ssr = match.ssr;
if (match._notFound) flightMatch.notFound = true;
return flightMatch;
}
//#endregion
export { createSolidStartFlightMatch };
//# sourceMappingURL=solid-rpc-flight.js.map