web / useFetchSession
Function: useFetchSession() ​
useFetchSession():
object
Defined in: apps/web/app/composables/useFetchSession/useFetchSession.ts:10
Returns ​
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();