File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments