Skip to content

Commit 932c358

Browse files
authored
test(react-virtual): add e2e test for React Compiler with directDomUpdates, bump react to 19 (TanStack#1187)
1 parent b983b21 commit 932c358

22 files changed

Lines changed: 454 additions & 241 deletions

File tree

benchmarks/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
},
1313
"dependencies": {
1414
"@tanstack/react-virtual": "workspace:*",
15-
"react": "^18.3.1",
16-
"react-dom": "^18.3.1",
15+
"react": "^19.2.7",
16+
"react-dom": "^19.2.7",
1717
"react-virtuoso": "^4.15.0",
1818
"react-window": "^2.2.4",
1919
"virtua": "^0.49.0"
2020
},
2121
"devDependencies": {
2222
"@playwright/test": "^1.53.1",
23-
"@types/react": "^18.3.23",
24-
"@types/react-dom": "^18.3.7",
23+
"@types/react": "^19.2.16",
24+
"@types/react-dom": "^19.2.3",
2525
"@vitejs/plugin-react": "^4.5.2",
2626
"typescript": "5.6.3",
2727
"vite": "^6.4.2"

examples/react/chat/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
},
1010
"dependencies": {
1111
"@tanstack/react-virtual": "^3.14.2",
12-
"react": "^18.3.1",
13-
"react-dom": "^18.3.1"
12+
"react": "^19.2.7",
13+
"react-dom": "^19.2.7"
1414
},
1515
"devDependencies": {
16-
"@types/react": "^18.3.23",
17-
"@types/react-dom": "^18.3.7",
16+
"@types/react": "^19.2.16",
17+
"@types/react-dom": "^19.2.3",
1818
"@vitejs/plugin-react": "^4.5.2",
1919
"typescript": "5.6.3",
2020
"vite": "^6.4.2"

examples/react/dynamic/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"dependencies": {
1111
"@faker-js/faker": "^8.4.1",
1212
"@tanstack/react-virtual": "^3.14.2",
13-
"react": "^18.3.1",
14-
"react-dom": "^18.3.1"
13+
"react": "^19.2.7",
14+
"react-dom": "^19.2.7"
1515
},
1616
"devDependencies": {
1717
"@types/node": "^24.5.2",
18-
"@types/react": "^18.3.23",
19-
"@types/react-dom": "^18.3.7",
18+
"@types/react": "^19.2.16",
19+
"@types/react-dom": "^19.2.3",
2020
"@vitejs/plugin-react": "^4.5.2",
2121
"typescript": "5.6.3",
2222
"vite": "^6.4.2"

examples/react/fixed/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
},
1010
"dependencies": {
1111
"@tanstack/react-virtual": "^3.14.2",
12-
"react": "^18.3.1",
13-
"react-dom": "^18.3.1"
12+
"react": "^19.2.7",
13+
"react-dom": "^19.2.7"
1414
},
1515
"devDependencies": {
1616
"@types/node": "^24.5.2",
17-
"@types/react": "^18.3.23",
18-
"@types/react-dom": "^18.3.7",
17+
"@types/react": "^19.2.16",
18+
"@types/react-dom": "^19.2.3",
1919
"@vitejs/plugin-react": "^4.5.2",
2020
"typescript": "5.6.3",
2121
"vite": "^6.4.2"

examples/react/infinite-scroll/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"dependencies": {
1212
"@tanstack/react-query": "^5.80.7",
1313
"@tanstack/react-virtual": "^3.14.2",
14-
"react": "^18.3.1",
15-
"react-dom": "^18.3.1"
14+
"react": "^19.2.7",
15+
"react-dom": "^19.2.7"
1616
},
1717
"devDependencies": {
18-
"@types/react": "^18.3.23",
19-
"@types/react-dom": "^18.3.7",
18+
"@types/react": "^19.2.16",
19+
"@types/react-dom": "^19.2.3",
2020
"@vitejs/plugin-react": "^4.5.2",
2121
"vite": "^6.4.2"
2222
}

examples/react/padding/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
},
1111
"dependencies": {
1212
"@tanstack/react-virtual": "^3.14.2",
13-
"react": "^18.3.1",
14-
"react-dom": "^18.3.1"
13+
"react": "^19.2.7",
14+
"react-dom": "^19.2.7"
1515
},
1616
"devDependencies": {
17-
"@types/react": "^18.3.23",
18-
"@types/react-dom": "^18.3.7",
17+
"@types/react": "^19.2.16",
18+
"@types/react-dom": "^19.2.3",
1919
"@vitejs/plugin-react": "^4.5.2",
2020
"vite": "^6.4.2"
2121
}

examples/react/pretext/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"dependencies": {
1111
"@chenglou/pretext": "^0.0.7",
1212
"@tanstack/react-virtual": "^3.14.2",
13-
"react": "^18.3.1",
14-
"react-dom": "^18.3.1"
13+
"react": "^19.2.7",
14+
"react-dom": "^19.2.7"
1515
},
1616
"devDependencies": {
1717
"@types/node": "^24.5.2",
18-
"@types/react": "^18.3.23",
19-
"@types/react-dom": "^18.3.7",
18+
"@types/react": "^19.2.16",
19+
"@types/react-dom": "^19.2.3",
2020
"@vitejs/plugin-react": "^4.5.2",
2121
"typescript": "5.6.3",
2222
"vite": "^6.4.2"

examples/react/pretext/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function estimateMessageHeight(message: Message, viewportWidth: number) {
116116
)
117117
}
118118

119-
function useElementWidth(ref: React.RefObject<HTMLElement>) {
119+
function useElementWidth(ref: React.RefObject<HTMLElement | null>) {
120120
const [width, setWidth] = React.useState(DEFAULT_VIEWPORT_WIDTH)
121121

122122
React.useLayoutEffect(() => {

examples/react/scroll-padding/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"dependencies": {
1212
"@react-hookz/web": "^25.1.1",
1313
"@tanstack/react-virtual": "^3.14.2",
14-
"react": "^18.3.1",
15-
"react-dom": "^18.3.1"
14+
"react": "^19.2.7",
15+
"react-dom": "^19.2.7"
1616
},
1717
"devDependencies": {
18-
"@types/react": "^18.3.23",
19-
"@types/react-dom": "^18.3.7",
18+
"@types/react": "^19.2.16",
19+
"@types/react-dom": "^19.2.3",
2020
"@vitejs/plugin-react": "^4.5.2",
2121
"vite": "^6.4.2"
2222
}

examples/react/smooth-scroll/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
},
1111
"dependencies": {
1212
"@tanstack/react-virtual": "^3.14.2",
13-
"react": "^18.3.1",
14-
"react-dom": "^18.3.1"
13+
"react": "^19.2.7",
14+
"react-dom": "^19.2.7"
1515
},
1616
"devDependencies": {
17-
"@types/react": "^18.3.23",
18-
"@types/react-dom": "^18.3.7",
17+
"@types/react": "^19.2.16",
18+
"@types/react-dom": "^19.2.3",
1919
"@vitejs/plugin-react": "^4.5.2",
2020
"vite": "^6.4.2"
2121
}

0 commit comments

Comments
 (0)