Best practices for state/composable to depend on fetched data?
I have a useUser composable that fetches API data to build the user: userInfo and companyInfo.
I get the error that a composable is used outside the Nuxt instance.
I want to know the best practices for implementing something like this, if anyone knows enough to help
Here's the code for the user composable and the user plugin.
I get the error that a composable is used outside the Nuxt instance.
I want to know the best practices for implementing something like this, if anyone knows enough to help
Here's the code for the user composable and the user plugin.
composables/useUser.js plugins/user-plugin.js