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
Copy file name to clipboardexpand all lines: packages/kit/src/exports/public.d.ts
+10
Original file line number
Diff line number
Diff line change
@@ -681,6 +681,16 @@ export interface KitConfig {
681
681
* @since 2.17.0
682
682
*/
683
683
resolution?: 'client'|'server';
684
+
/**
685
+
* Sometimes the server renders the HTML successfully, but during hydration on the client something goes wrong. One example is a flaky network where
686
+
* the request for one of the JavaScript files that is needed for a page to work fails. This option allows you to configure what should happen in such a case:
687
+
* - `'error'` (default) - the client will fall back to the root error page. The user will immediately see something's off and depending on the error page can act accordingly. Use this if your app is too sensitive to not-immediately-visible broken states.
688
+
* - `'keep html'` - the client will show the HTML that was rendered on the server and not attempt to hydrate the page. The user will see the successful server-rendered page, but no interactivity will be available and navigations are full page reloads. Use this if your app can largely function without JavaScript.
* Sometimes the server renders the HTML successfully, but during hydration on the client something goes wrong. One example is a flaky network where
668
+
* the request for one of the JavaScript files that is needed for a page to work fails. This option allows you to configure what should happen in such a case:
669
+
* - `'error'` (default) - the client will fall back to the root error page. The user will immediately see something's off and depending on the error page can act accordingly. Use this if your app is too sensitive to not-immediately-visible broken states.
670
+
* - `'keep html'` - the client will show the HTML that was rendered on the server and not attempt to hydrate the page. The user will see the successful server-rendered page, but no interactivity will be available and navigations are full page reloads. Use this if your app can largely function without JavaScript.
0 commit comments