-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(remix): Update
defer
injection logic. (#9242)
- Loading branch information
1 parent
755ba73
commit e4a1440
Showing
8 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/remix/test/integration/app_v1/routes/loader-defer-response/$id.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from '../../../common/routes/loader-defer-response.$id'; | ||
export { default } from '../../../common/routes/loader-defer-response.$id'; |
2 changes: 0 additions & 2 deletions
2
packages/remix/test/integration/app_v1/routes/loader-defer-response/index.tsx
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
packages/remix/test/integration/app_v2/routes/loader-defer-response.$id.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from '../../common/routes/loader-defer-response.$id'; | ||
export { default } from '../../common/routes/loader-defer-response.$id'; |
2 changes: 0 additions & 2 deletions
2
packages/remix/test/integration/app_v2/routes/loader-defer-response.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/remix/test/integration/test/client/deferred-response.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('should receive correct data from instrumented defer response', async ({ page }) => { | ||
await page.goto('/loader-defer-response/98765'); | ||
|
||
const renderedId = await page.waitForSelector('#data-render'); | ||
|
||
expect(await renderedId?.textContent()).toBe('98765'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters