Bubble errors from the server to the client on suspense boundaries (#2772)
* Bubble errors from the server to the client on suspense boundaries * make resolving suspense boundaries O(n)
This commit is contained in:
1 parent
3003362b52
commit
b0a2e2418c
12 files changed
+190
-39
No files matched your search
@@ -28,4 +28,8 @@ test("hydration", async ({ page }) => {
|
||||
|
||||
// Expect the page to contain the updated counter text.
|
||||
await expect(main).toContainText("Server said: Hello from the server!");
|
||||
|
||||
// Make sure the error that was thrown on the server is shown in the error boundary on the client
|
||||
const errors = page.locator("#errors");
|
||||
await expect(errors).toContainText("Hmm, something went wrong.");
|
||||
});
|
||||
Reference in new issue
Block a user