useParams
SteamClientHomebrewSDK / client/src / useParams
Variable: useParams()
const useParams: <T>() => T;
Defined in: typescript-packages/client/src/deck-hooks/useParams.ts:13
Get the current params from ReactRouter
Type Parameters
T
T
Returns
T
an object with the current ReactRouter params
Example
import { useParams } from "decky-frontend-lib";
const { appid } = useParams<{ appid: string }>()