Use the outer query value in gqlFetcher call

The inner query value never changes, so no need to worry
with type casting this here, it will always be a string.
This commit is contained in:
Jackson Harper 2022-03-01 14:26:42 -08:00
parent 51b3fb4545
commit 1557136e81

View file

@ -144,7 +144,7 @@ export function useGetLibraryItemsQuery({
: previousResult.articles.pageInfo.endCursor,
]
},
(query, _l, _s, _sq, cursor: string) => {
(_query, _l, _s, _sq, cursor: string) => {
return gqlFetcher(query, { ...variables, after: cursor }, true)
}
)