Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joekrump
Copy link

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

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.
@joekrump joekrump changed the title Update remembering-state.jsx Update svelte code snippet for manaually saving state in remembering-state.jsx Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant