Skip to content

Commit 8cd58b1

Browse files
committed
update comment
1 parent 5c52018 commit 8cd58b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration/vite-hmr-hdr-rsc-test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ test.describe("Vite HMR & HDR (RSC)", () => {
391391
);
392392
await page.waitForLoadState("networkidle");
393393
await expect(hmrStatus).toHaveText("Client Route HMR: 0");
394-
// state is not preserved when switching from server to client route
394+
// adding/removing client component exports causes an HMR invalidation and a
395+
// page reload. some browsers maintain input state, so we forcibly clear
395396
await input.clear();
396397
await input.type("client stateful");
397398
expect(page.errors).toEqual([]);
@@ -414,7 +415,8 @@ test.describe("Vite HMR & HDR (RSC)", () => {
414415
);
415416
await page.waitForLoadState("networkidle");
416417
await expect(hmrStatus).toHaveText("Server Route HMR: 0");
417-
// State is not preserved when switching from client to server route
418+
// adding/removing client component exports causes an HMR invalidation and a
419+
// page reload. some browsers maintain input state, so we forcibly clear
418420
await input.clear();
419421
await input.type("server stateful");
420422
expect(page.errors).toEqual([]);

0 commit comments

Comments
 (0)