File tree 2 files changed +9
-15
lines changed
versioned_docs/version-v2.10/guides
2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
15
15
## [ Unreleased]
16
16
17
+ ### Changed
18
+ - Updated recommendation for Svelte router in [ #4085 ] ( https://github.com/wailsapp/wails/pull/4085 ) by [ @benmccann ] ( https://github.com/benmccann )
19
+
20
+
17
21
## v2.10.1 - 2025-02-24
18
22
19
23
### Fixed
Original file line number Diff line number Diff line change @@ -48,21 +48,11 @@ ReactDOM.render(
48
48
49
49
## Svelte
50
50
51
- The recommended approach for routing in Svelte is [ svelte-spa-router ] ( https://github.com/ItalyPaleAle/svelte-spa-router ) :
51
+ The recommended approach for routing in Svelte is [ SvelteKit's adapter-static with SPA configuration ] ( https://svelte.dev/docs/kit/single-page-apps ) :
52
52
53
53
``` svelte
54
- <script>
55
- import Router from "svelte-spa-router";
56
- </script>
57
-
58
- <Router
59
- routes={{
60
- "/": Home,
61
- "/products": wrap({
62
- asyncComponent: () => import("./routes/Products.svelte"),
63
- }),
64
- "/settings": Settings,
65
- "*": NotFound,
66
- }}
67
- />
54
+ export const prerender = true;
55
+ export const ssr = false;
68
56
```
57
+
58
+ See [ the guide] ( sveltekit ) for full details.
You can’t perform that action at this time.
0 commit comments