framework7
framework7 copied to clipboard
asyncComponent fails on deep link (live example)
- Framework7 version: 7.0.8
- Svelte version: 3.53.1
- Platform and Target: Browser
- CodeSandbox Link: https://codesandbox.io/s/funny-joji-te5yn8?file=/App.svelte
Describe the bug
Using asyncComponent in the route definition results in svelte:component error on deep link.
To Reproduce
- Enable browserHistory in the main view
- Create a route using asyncComponent => import()
- Deep link into the route using asyncComponent
- Observe error
In the CodeSandbox
- In the app view window, click on ABOUT button.
- Note, the browserHistory is enabled.
- Now, refresh that view window to simulate a deep link.
- Observe the error.
Expected behavior
The page should simply load.
Actual Behavior
Getting a svelte:component JS error.
Screenshots

Additional context
Change the route definition to a component instead of asyncComponent and it works fine.