mr_liu
mr_liu
> useState hi Barbapapazes.I encountered the issue of requests being sent twice today while testing nuxt-authorization, but I'm not sure how to resolve it based on your answer. Could you...
``` import { defineAbility } from 'nuxt-authorization/utils' const createProduct = defineAbility(() => { console.log('createProduct') return true }) 看得到吗? ``` > [@lanwu114](https://github.com/lanwu114) https://nuxt.com/docs/4.x/api/composables/use-state Check the docs or send your code example...
> [@lanwu114](https://github.com/lanwu114) > > Wrap the defineAbility around 'useState' composable from nuxt My code was originally like this: ``` const createProduct = defineAbility(() => { console.log('createProduct') return true }) ```...
> > > useState > > > > > > hi Barbapapazes.I encountered the issue of requests being sent twice today while testing nuxt-authorization, but I'm not sure how to...