mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Return true for isValidating if no data found
This commit is contained in:
parent
2999a7a66e
commit
443b416601
2 changed files with 1 additions and 10 deletions
|
|
@ -57,7 +57,6 @@ export function useGetSubscriptionsQuery(): SubscriptionsQueryResponse {
|
|||
`
|
||||
|
||||
const { data, mutate, error, isValidating } = useSWR(query, publicGqlFetcher)
|
||||
console.log('subscriptions data', data)
|
||||
|
||||
try {
|
||||
if (data) {
|
||||
|
|
@ -75,7 +74,7 @@ export function useGetSubscriptionsQuery(): SubscriptionsQueryResponse {
|
|||
console.log('error', error)
|
||||
}
|
||||
return {
|
||||
isValidating: false,
|
||||
isValidating: true,
|
||||
subscriptions: [],
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
revalidate: () => {},
|
||||
|
|
|
|||
|
|
@ -18,14 +18,6 @@ export default function SubscriptionsPage(): JSX.Element {
|
|||
const [confirmUnsubscribeName, setConfirmUnsubscribeName] =
|
||||
useState<string | null>(null)
|
||||
|
||||
console.log(
|
||||
'subscriptions',
|
||||
subscriptions,
|
||||
subscriptions.length,
|
||||
'isValidating',
|
||||
isValidating
|
||||
)
|
||||
|
||||
applyStoredTheme(false)
|
||||
|
||||
async function onUnsubscribe(name: string): Promise<void> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue