# Interface GetScrollRestorationKeyFunction

Function signature for determining the key to be used in scroll restoration for a given location

interface GetScrollRestorationKeyFunction ((location, matches) => string)

- GetScrollRestorationKeyFunction(location, matches): string

- #### Parameters

  - location: Location<any>
  - matches: UIMatch<unknown, unknown>[]

  #### Returns string

  - Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/router.d.ts:331