inertiajs.com icon indicating copy to clipboard operation
inertiajs.com copied to clipboard

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

Open joekrump opened this issue 1 year ago • 0 comments

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

joekrump avatar Nov 15 '23 03:11 joekrump