useLazySanctumFetch
Besides useSanctumClient
you can directly send a request by using a module-specific version of fetch composable - useLazySanctumFetch
.
This composable implements the same interface as useLazyFetch
, so you can check more details here.
components/YourComponent.vue
You can also use type casting to work with response as an interface:
Last updated