quasar 2beta useStore in routes.ts is undefined #9271
Unanswered
juanbill
asked this question in
General - Components / Directives / etc
Replies: 1 comment 1 reply
-
@juanbill ...
import routes from './routes.ts'
...
export default route<StateInterface>(function ({ store }) { // <--- uncomment store
...
const Router = createRouter({
...
routes(store), // <-- pass the store as parameter, then consume it in your router/routes.ts
...
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using quasar 2 beta boilerplate code for the store, and import useStore in the routes.ts, however its undefined.
I created a interface for the getters
What needs to be done so getters for useStore can be accessed in router.ts?
Thanking you guys in advance.
Content of routes.ts
Content store/index.ts
Beta Was this translation helpful? Give feedback.
All reactions