ParadoX
How to create a stateful composable that uses useState?
I'll try this approach: https://medium.com/@cybercoder.naj/handle-global-state-management-in-nuxt3-468e5b3e7901
9 replies
How to create a stateful composable that uses useState?
Bonus question: Inside my composable useSearch that exports a function that returns this:
Somewhere else I might use it like that:
Is there a way of accessing data, pending, status and error inside the composable itself? 🤔 I need those to be part of the gobale state
9 replies