Skip to content

Commit a35cbed

Browse files
committed
release version canary
1 parent 671d92a commit a35cbed

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.github/workflows/rebuild-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/checkout@v4
5050

5151
- name: Use Node.js ${{ matrix.node-version }}
52-
uses: actions/setup-node@v3
52+
uses: actions/setup-node@v4
5353
with:
5454
node-version: ${{ matrix.node-version }}
5555
cache: 'npm'

source/src/components/DataSource/getDataSourceApi.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
DataSourceSingleSortInfo,
66
DataSourceState,
77
} from '.';
8-
import { raf } from '../../utils/raf';
98
import { InfiniteTableRowInfo } from '../InfiniteTable/types';
109
import { DataSourceCache } from './DataSourceCache';
1110
import { getRowInfoAt, getRowInfoArray } from './dataSourceGetters';
@@ -56,7 +55,7 @@ class DataSourceApiImpl<T> implements DataSourceApi<T> {
5655
private getState: () => DataSourceState<T>;
5756
private actions: DataSourceComponentActions<T>;
5857
//@ts-ignore
59-
private batchOperationRafId: number = 0;
58+
private batchOperationRafId: any = 0;
6059
//@ts-ignore
6160
private batchOperationTimeoutId: any = 0;
6261

@@ -81,12 +80,12 @@ class DataSourceApiImpl<T> implements DataSourceApi<T> {
8180
const delay = Math.max(0, this.getState().batchOperationDelay ?? 0);
8281

8382
if (delay === 0) {
84-
this.batchOperationRafId = raf(() => {
83+
this.batchOperationRafId = setTimeout(() => {
8584
this.commit();
8685
});
8786
} else {
8887
this.batchOperationTimeoutId = setTimeout(() => {
89-
this.batchOperationRafId = raf(() => {
88+
this.batchOperationRafId = setTimeout(() => {
9089
this.commit();
9190
});
9291
}, delay);

source/src/components/DataSource/privateHooks/useLoadData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ function lazyLoadRange<T>(
10541054
] = [componentState.data, componentState, componentActions, fnCall];
10551055

10561056
// TODO make this whole function testable, so we can properly test multiple calls are not issued for the same batch (in the same group)
1057-
1057+
// TODO should replace raf with setTimeout
10581058
return promise.then(() => getRafPromise()).then(() => loadData(...args));
10591059
}, initialPromise);
10601060
}

source/src/components/InfiniteTable/components/InfiniteTableLicenseFooter/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { join } from '../../../../utils/join';
77
import { decamelize } from '../../../utils/decamelize';
88
import { ThemeVars } from '../../vars.css';
99
import { FooterCls } from '../../InfiniteCls.css';
10-
import { raf } from '../../../../utils/raf';
1110

1211
const defaultStyle: React.CSSProperties = {
1312
padding: ThemeVars.spacing[2],
@@ -65,7 +64,7 @@ export const InfiniteTableLicenseFooter = React.forwardRef(
6564

6665
useEffect(() => {
6766
const forceStyle = () => {
68-
raf(() => {
67+
setTimeout(() => {
6968
enforceStyle(domRef.current, defaultStyle);
7069
enforceStyle(
7170
domRef.current?.firstElementChild as HTMLElement | null,

0 commit comments

Comments
 (0)