Skip to content

transiton make delay when ondestroy the component #8685

@Vibeesarma

Description

@Vibeesarma

Describe the bug

if I use any page transition like the below one,

<div in:slide class="px-3 py-2 block">search</div>

when I navigate to any other page what happen s first navigate to the next page after that it will destroy the preview page where I used to transition.

Reproduction

you can reproduce use in one-page transitions like slide and use navigate to next page anchor tag also add onmount and ondestroy to every and add logs then run and when it will destroy the when you used transition one-page

Logs

No response

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i3-3210 CPU @ 3.20GHz
    Memory: 677.77 MB / 3.73 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    Yarn: 1.22.18 - ~/node_modules/.bin/yarn
    npm: 9.5.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Firefox: 113.0.2
  npmPackages:
    svelte: ^3.54.0 => 3.56.0

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions