Skip to content

Commit

Permalink
docs: note embedded mode limitations (#11555)
Browse files Browse the repository at this point in the history
related #11545
  • Loading branch information
dummdidumm committed Jan 9, 2024
1 parent b440214 commit c7a195a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/kit/src/exports/public.d.ts
Expand Up @@ -349,6 +349,7 @@ export interface KitConfig {
};
/**
* 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`.
* Note that it is generally not supported to embed multiple SvelteKit apps on the same page and use client-side SvelteKit features within them (things such as pushing to the history state assume a single instance).
* @default false
*/
embedded?: boolean;
Expand Down
1 change: 1 addition & 0 deletions packages/kit/types/index.d.ts
Expand Up @@ -331,6 +331,7 @@ declare module '@sveltejs/kit' {
};
/**
* 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`.
* Note that it is generally not supported to embed multiple SvelteKit apps on the same page and use client-side SvelteKit features within them (things such as pushing to the history state assume a single instance).
* @default false
*/
embedded?: boolean;
Expand Down

0 comments on commit c7a195a

Please sign in to comment.