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

How to manage the page stack like a native app instead of destroying it. #15485

Open
grj1997 opened this issue Mar 10, 2025 · 2 comments
Open
Labels
awaiting submitter needs a reproduction, or clarification

Comments

@grj1997
Copy link

grj1997 commented Mar 10, 2025

Describe the bug

Image

Reproduction

Image
component 发生变化会重新渲染,我希望某个路由回退的时候不重新渲染,如何处理这种问题

Logs

System Info

.

Severity

annoyance

@paoloricciuti
Copy link
Member

Please write your issues in english and provide a proper reproduction, not a screenshot 😊

@paoloricciuti paoloricciuti added the awaiting submitter needs a reproduction, or clarification label Mar 10, 2025
@grj1997
Copy link
Author

grj1997 commented Mar 13, 2025

<svelte:component
this={component}
on:routeEvent
{...props}
/>
I use svelte:component to dynamically change the advance and retreat of the component route, but when the value of the component changes when the route is rolled back, it will be rendered again. Is there any solution? I hope that when the route is controlled, it will be rolled back like an app without reloading the page that has been displayed

20250313_095548.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification
Projects
None yet
Development

No branches or pull requests

2 participants