framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.15k stars 3.23k forks source link

Framework7 Svelte: Root page disappears on navigate back #4293

Open erskingardner opened 1 month ago

erskingardner commented 1 month ago

I'm posting here because the forum is blocking all new signups from all IP addresses.

I'm using framework7-svelte and have a page with several views (one that is set as the main view) and then pages that are loaded via routes (think whatsapp style messenger that navigates from a chats page, into a chat, and then clicking on the nav bar goes into a profile page).

There are no console errors and I can see that the page events are firing, the UI is just not being rendered properly. I've also added console logs on each route change and logged out the full route params, nothing seems amiss here. There's no difference in the params from when the page loads initially vs when it disappears.

Any ideas?

Muhammed-Rahif commented 4 weeks ago

I am also facing this issue after migrating to svelte 5. @erskingardner can you confirm which version of svelte are you using? If svelte 5, then this is probably related svelte 5 and a migration will be appreciated!

erskingardner commented 3 weeks ago

I'm using svelte 5. In the end I restructured my app a bit and added some time delays in the navigation and the problem went away.

benjvalles commented 1 week ago

I also have the same problem with Svelte 5. Could you explain what you mean by "delays"

Muhammed-Rahif commented 1 week ago

Adding delays is not working for me.