Skip to content

Instantly share code, notes, and snippets.

@ilxanlar
Created April 30, 2021 10:22
Show Gist options
  • Save ilxanlar/4bc350a908dfe72a6f3c968a5edf094d to your computer and use it in GitHub Desktop.
Save ilxanlar/4bc350a908dfe72a6f3c968a5edf094d to your computer and use it in GitHub Desktop.
export default function getQueryKey(query, variables) {
const { name, path, params } = query(variables)
return [name, path, params]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment