forked from crowetic/commerce
Added useCustomer hook
This commit is contained in:
@@ -14,12 +14,7 @@ export const fetcher: HookFetcher<Cart | null, CartInput> = (
|
||||
{ cartId },
|
||||
fetch
|
||||
) => {
|
||||
return cartId
|
||||
? fetch({
|
||||
url: options?.url,
|
||||
query: options?.query,
|
||||
})
|
||||
: null
|
||||
return cartId ? fetch({ ...options }) : null
|
||||
}
|
||||
|
||||
export function extendHook(
|
||||
|
Reference in New Issue
Block a user