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

Svelte Transitions break the back button #92

Open
bobspace opened this issue Sep 14, 2022 · 1 comment
Open

Svelte Transitions break the back button #92

bobspace opened this issue Sep 14, 2022 · 1 comment

Comments

@bobspace
Copy link

bobspace commented Sep 14, 2022

Including svelte transitions in a child component of a Route throws runtime errors when you navigate back from that route.

Here's a REPL that repros the issue: https://svelte.dev/repl/fbf4cecab51842758c2e3e5a746a7dc3?version=3.50.1

  1. Go to the REPL above
  2. Click on 'Press for Error Test'
  3. Press the back button
  4. See error

image

Replicated on desktop:

  • OS: MacOS 12.4
  • Browser Safari
  • Version 15.5
@IsAvaible
Copy link

Append |local to the transition declaration (e.g. transition:fadetransition:fade|local). See also: https://svelte.dev/tutorial/local-transitions

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

No branches or pull requests

2 participants