web / useFetchSession
Function: useFetchSession() ​
useFetchSession():
object
Defined in: apps/web/composables/useFetchSession/useFetchSession.ts:10
Returns ​
object
fetchSession() ​
fetchSession: () =>
Promise
<void
>
Function for getting current user/cart data from session
Returns ​
Promise
<void
>
Example ​
ts
fetchSession();
loading ​
loading:
Ref
<boolean
,boolean
> =false
Description ​
Composable to fetch current session data including user and cart information.
Example ​
ts
const { loading, fetchSession } = useFetchSession();