(_to, _from, next)
| 6 | const pinia = createPinia(); |
| 7 | |
| 8 | const initStateGuard: NavigationGuard = async (_to, _from, next) => { |
| 9 | const app = useAppStore(); |
| 10 | |
| 11 | await app |
| 12 | .initialize() |
| 13 | .catch(e => logger.error(`Application failed to initialize the state`, { error: e })) |
| 14 | .finally(() => next()); |
| 15 | }; |
| 16 | |
| 17 | export { initStateGuard, pinia }; |
nothing calls this directly
no test coverage detected