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
[breaking] add embedded option, turned off by default (#7969)
* [breaking] add embedded option, turned off by default
Closes#7940
Adds a new option which defaults to false. If true, events related to navigation etc are listened to on the target element rather the html root
* fix test
* support #4935
* tests
* docs
* filter start options
Co-authored-by: Rich Harris <[email protected]>
Copy file name to clipboardExpand all lines: packages/kit/types/index.d.ts
+5
Original file line number
Diff line number
Diff line change
@@ -325,6 +325,11 @@ export interface KitConfig {
325
325
*/
326
326
checkOrigin?: boolean;
327
327
};
328
+
/**
329
+
* Whether or not the app is embedded inside a larger app. If `true`, SvelteKit will add its event listeners related to navigation etc on the parent of `%sveltekit.body%` instead of `window`, and will pass `params` from the server rather than inferring them from `location.pathname`.
0 commit comments