Force async onRefresh on PullToRefresh component (#2487)

* Force async onRefresh

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2024-03-21 13:36:59 -07:00
committed by GitHub
parent 107acdb36b
commit 586a26968c
2 changed files with 10 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ export function PullToRefresh(props: PullToRefreshProps) {
}),
)}
{...props}
// Force async because the library errors out when a sync onRefresh method is provided.
onRefresh={async () => {
await props.onRefresh?.();
}}
/>
</div>
);

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [joel-jeremy]
---
Fix mobile accounts page pull to refresh functionality