mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use variables in subscriptions SWR cache key
This commit is contained in:
parent
2e0f57446f
commit
f2fa35c42d
1 changed files with 8 additions and 7 deletions
|
|
@ -68,14 +68,15 @@ export function useGetSubscriptionsQuery(
|
|||
}
|
||||
`
|
||||
|
||||
const variables = {
|
||||
type,
|
||||
sort: {
|
||||
by: sortBy,
|
||||
},
|
||||
}
|
||||
const { data, mutate, isValidating } = useSWR(
|
||||
query,
|
||||
makeGqlFetcher({
|
||||
type,
|
||||
sort: {
|
||||
by: sortBy,
|
||||
},
|
||||
})
|
||||
[query, variables],
|
||||
makeGqlFetcher(variables)
|
||||
)
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue