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

prevent onDestroy #10830

Closed
mkazar opened this issue Oct 4, 2023 · 4 comments
Closed

prevent onDestroy #10830

mkazar opened this issue Oct 4, 2023 · 4 comments

Comments

@mkazar
Copy link

mkazar commented Oct 4, 2023

Describe the problem

if we search a word and get result list, if I click on a result a new page is opened, when I click on back button, the result list is disappeared and page is refreshed

Describe the proposed solution

I want to prevent ondestroy when page changed.

Alternatives considered

No response

Importance

i cannot use SvelteKit without it

Additional Information

No response

@dummdidumm
Copy link
Member

Could you clarify what you mean by that? Do you want to prevent the user to go back (use beforeNavigate for this)? If not, what exactly should be prevented from being destroyed (if you change pages, it's expected that the contents of the previous page are destroyed)?

@mkazar
Copy link
Author

mkazar commented Oct 4, 2023

when in a social web (like twitter) you scroll down and open a tweet, then if you go back, home page not changed (not refreshed or destroyed).

@Rishab49
Copy link

Rishab49 commented Oct 5, 2023

I think this feature is work in progress #9847

@eltigerchino
Copy link
Member

closed as duplicate of #2673

@eltigerchino eltigerchino closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants