You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -251,10 +253,14 @@ Astro wraps framework components in `<astro-island>` elements with an `ssr` attr
251
253
252
254
The `waitForHydration()` function waits for this attribute to be removed before proceeding.
253
255
254
-
Pass `screen.container`to wait for all islands, or a specific island element to wait for just that one. An optional timeout can be specified (default: 5000ms):
256
+
Pass the `screen` result to wait for all islands, or a specific locator to wait for islands within that element:
255
257
256
258
```ts
257
-
awaitwaitForHydration(screen.container, 10000); // Wait up to 10 seconds
Skip `waitForHydration()` for components without client directives. You can also manually check for hydration by waiting for the `ssr` attribute to be removed:
0 commit comments