mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 11:53:23 +01:00
Add remaining features to fun picker
This commit is contained in:
@@ -98,8 +98,13 @@ export function useInfiniteQuery<Query, Page>(
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
log.error('Error fetching first page', Errors.toLogFormat(error));
|
||||
if (!signal.aborted) {
|
||||
if (signal.aborted) {
|
||||
update({
|
||||
...stateRef.current,
|
||||
pending: false,
|
||||
});
|
||||
} else {
|
||||
log.error('Error fetching first page', Errors.toLogFormat(error));
|
||||
update({
|
||||
query: options.query,
|
||||
pending: false,
|
||||
@@ -155,8 +160,13 @@ export function useInfiniteQuery<Query, Page>(
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
log.error('Error fetching next page', Errors.toLogFormat(error));
|
||||
if (!signal.aborted) {
|
||||
if (signal.aborted) {
|
||||
update({
|
||||
...stateRef.current,
|
||||
pending: false,
|
||||
});
|
||||
} else {
|
||||
log.error('Error fetching next page', Errors.toLogFormat(error));
|
||||
update({
|
||||
query,
|
||||
pending: false,
|
||||
|
||||
Reference in New Issue
Block a user