4
0
forked from crowetic/commerce

Added useCustomer hook

This commit is contained in:
Luis Alvarez
2020-10-21 10:23:05 -05:00
parent 2aae613f1b
commit d98897a7e3
4 changed files with 72 additions and 6 deletions

View File

@@ -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(