MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / Middleware

Function Middleware

apps/web/ui/Typesense/index.tsx:98–106  ·  view source on GitHub ↗
({ middlewares }: { middlewares: any[] })

Source from the content-addressed store, hash-verified

96}
97
98function Middleware({ middlewares }: { middlewares: any[] }) {
99 const { addMiddlewares } = useInstantSearch();
100
101 useLayoutEffect(() => {
102 return addMiddlewares(...middlewares);
103 }, []);
104
105 return null;
106}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected