Skip to content

Commit b7b6675

Browse files
committed
chore: Testing page re-renders when loading global variable data from deeply-nested components using usesyncexternalstore
1 parent 92b2efa commit b7b6675

File tree

1 file changed

+15
-3
lines changed
  • client/src/components/usesyncexternalstore

1 file changed

+15
-3
lines changed

client/src/components/usesyncexternalstore/index.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,21 @@ function UseSyncExternalStoreComponent ({
1313
UseSyncExternalStoreComponent
1414
</h2>
1515

16-
<TodoListComponentV2
17-
deleteTodo={deleteTodo}
18-
/>
16+
<Card>
17+
<Card>
18+
<Card>
19+
<Card>
20+
<Card>
21+
<Card>
22+
<TodoListComponentV2
23+
deleteTodo={deleteTodo}
24+
/>
25+
</Card>
26+
</Card>
27+
</Card>
28+
</Card>
29+
</Card>
30+
</Card>
1931

2032
<button onClick={() => addTodo()}>
2133
Add Todo

0 commit comments

Comments
 (0)