On Back Reload data

Hello, I’m working on F7 Svelte and I have some routes with dynamic json load for data, the function is excecuted from the router.js but my problem is that when I do f7router.back(); the page doesnt reload it data.

How could I force to reExecute the async method of the router.js when going back to a page.

use pageBeforeIn page event

1 Like

Thank you very much, do you have an example, because last time I used page events was in V1, and I really don’t know how to do that on svelte.

<Page onPageBeforeIn={doSomething}>
1 Like