We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbca82f commit 0027678Copy full SHA for 0027678
src/components/PaginatedTable/useScrollBasedChunks.ts
@@ -18,8 +18,10 @@ interface ChunkState {
18
shouldFetch: boolean;
19
}
20
21
+const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
22
+
23
// Bad performance in Safari - reduce overscan counts
-const DEFAULT_RENDER_OVERSCAN = 2;
24
+const DEFAULT_RENDER_OVERSCAN = isSafari ? 1 : 2;
25
const DEFAULT_FETCH_OVERSCAN = 4;
26
27
export const useScrollBasedChunks = ({
0 commit comments