Skip to content

Commit 2c8542a

Browse files
Sync svelte docs (#932)
sync svelte docs Co-authored-by: Rich-Harris <[email protected]>
1 parent fac2647 commit 2c8542a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/svelte.dev/content/docs/svelte/07-misc/07-v5-migration-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,8 @@ The `foreign` namespace was only useful for Svelte Native, which we're planning
823823

824824
`afterUpdate` callbacks in a parent component will now run after `afterUpdate` callbacks in any child components.
825825

826+
`beforeUpdate/afterUpdate` no longer run when the component contains a `<slot>` and its content is updated.
827+
826828
Both functions are disallowed in runes mode — use `$effect.pre(...)` and `$effect(...)` instead.
827829

828830
### `contenteditable` behavior change

apps/svelte.dev/content/docs/svelte/07-misc/99-faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ If you need hash-based routing on the client side, check out [svelte-spa-router]
102102

103103
You can see a [community-maintained list of routers on sveltesociety.dev](https://sveltesociety.dev/packages?category=routers).
104104

105+
## How do I write a mobile app with Svelte?
106+
107+
While most mobile apps are written without using JavaScript, if you'd like to leverage your existing Svelte components and knowledge of Svelte when building mobile apps, you can turn a [SvelteKit SPA](https://kit.svelte.dev/docs/single-page-apps) into a mobile app with [Tauri](https://v2.tauri.app/start/frontend/sveltekit/) or [Capacitor](https://capacitorjs.com/solution/svelte). Mobile features like the camera, geolocation, and push notifications are available via plugins for both platforms.
108+
109+
Svelte Native was an option available for Svelte 4, but note that Svelte 5 does not currently support it. Svelte Native lets you write NativeScript apps using Svelte components that contain [NativeScript UI components](https://docs.nativescript.org/ui/) rather than DOM elements, which may be familiar for users coming from React Native.
110+
105111
## Can I tell Svelte not to remove my unused styles?
106112

107113
No. Svelte removes the styles from the component and warns you about them in order to prevent issues that would otherwise arise.

0 commit comments

Comments
 (0)