MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / loader

Function loader

src/Components/Post/PostPage.jsx:11–16  ·  view source on GitHub ↗
({request})

Source from the content-addressed store, hash-verified

9import {postsPostPath} from "../RouteUtils";
10
11export async function loader({request}) {
12 const url = new URL(request.url);
13 const searchStr = url.searchParams.get("searchStr");
14 const posts = await getPosts({searchStr});
15 return {posts, searchStr};
16}
17
18export default function PostPage() {
19 const loaderData = useLoaderData();

Callers

nothing calls this directly

Calls 1

getPostsFunction · 0.90

Tested by

no test coverage detected