inertiajs / inertiajs.com

Official Inertia.js website.
https://inertiajs.com
147 stars 115 forks source link

Update svelte code snippet for manaually saving state in remembering-state.jsx #317

Open joekrump opened 11 months ago

joekrump commented 11 months ago

Update the svelte code snippet for manually saving state. @inertiajs/svelte does not export router and @inertiajs/core does, so I've updated the snippet to import from @inertiajs/core.

Perhaps @inertia/svelte should expose route, however, this change is focused on keeping the docs accurate.

Here's what I get if I try to use import { router } from "@inertiajs/svelete";:

image