In v5 I used to do this:
{
path: '/settings/',
viewName: 'main',
async: async ({ resolve }) => {
const module = await import('../components/user/ProfileSettingsPage');
const component = module.default;
resolve({ component });
}
}
But that fails with something about a component does not return a function. So I changed to this:
{
path: '/settings/',
viewName: 'main',
async: async ({ resolve }) => {
const module = await import('../components/user/ProfileSettingsPage');
const component = () => module.default;
resolve({ component });
}
}
But then F7 is just broken.
Any ideas?