ParadoX
Typecheck errors on all that is auto imported
I switched from yarn to pnpm and now I am getting errors when running typecheck (vue-tsc) - it looks like every auto imported item is throwing the same error, example:
I have hunderds of the same kind...Any ideas? 🤔
3 replies
How to create a stateful composable that uses useState?
So I am refactoring my app and I am replacing pinia stores with composables. If I want a global state that is shared with all instances of that composable, I need to define this ref outside of the exported function. Like this:
However, if I want to use useState, I cannot do that outside of the composable function. What now? 🤔
9 replies
How can I use my own composables inside a playwright test?
I replaced pinia with a custom composable "useSettings". In my playwright tests, I was able to access Pinia like this
Now when I try to use my composable inside my tests, I am getting the error "useSettings is not defined".
How can I import it? 🤔
1 replies