mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 13:35:08 +00:00
site: mention host in preload and in page store
This commit is contained in:
@@ -14,7 +14,7 @@ Inside a component, get references to the stores like so:
|
||||
```
|
||||
|
||||
* `preloading` contains a readonly boolean value, indicating whether or not a navigation is pending
|
||||
* `page` contains a readonly `{ path, params, query }` object, identical to that passed to `preload` functions
|
||||
* `page` contains a readonly `{ host, path, params, query }` object, identical to that passed to `preload` functions
|
||||
* `session` contains whatever data was seeded on the server. It is a [writable store](https://svelte.dev/tutorial/writable-stores), meaning you can update it with new data (for example, after the user logs in) and your app will be refreshed
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user