MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / useHints

Function useHints

docs/app/services/client-hints.tsx:26–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 * Utility used to get the client hints for the current users browser.
25 * */
26export function useHints() {
27 const requestInfo = useRouteLoaderData<Route.ComponentProps["loaderData"]>("root")
28 return requestInfo?.hints
29}
30/**
31 * Utility component used to check the client hints on the client and send them to the server.
32 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…