mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
Don't spin on scroll
This commit is contained in:
@ -79,10 +79,9 @@ export default function TabLayout() {
|
|||||||
const setToDosIndex = useSetAtom(toDosPageIndex);
|
const setToDosIndex = useSetAtom(toDosPageIndex);
|
||||||
const { resyncAllCalendars, isSyncing } = useCalSync();
|
const { resyncAllCalendars, isSyncing } = useCalSync();
|
||||||
|
|
||||||
const isFormatting = useIsFetching({queryKey: ['formattedEvents']}) > 0;
|
|
||||||
const isFetching = useIsFetching({queryKey: ['events']}) > 0;
|
const isFetching = useIsFetching({queryKey: ['events']}) > 0;
|
||||||
|
|
||||||
const isLoading = isSyncing || isFormatting || isFetching;
|
const isLoading = isSyncing || isFetching;
|
||||||
|
|
||||||
const onRefresh = React.useCallback(async () => {
|
const onRefresh = React.useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user