Skip to content

Commit

Permalink
Ensure shipping and guest email is not persisted in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwiebell committed Feb 19, 2020
1 parent f077834 commit f537d1c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/peregrine/lib/talons/Checkout/useAddressForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ export const useAddressForm = props => {

const [{ isSignedIn }] = useUserContext();

const [setGuestEmail] = useMutation(setGuestEmailMutation);
const [setGuestEmail] = useMutation(setGuestEmailMutation, {
fetchPolicy: 'no-cache'
});
const [setShippingAddressOnCart] = useMutation(
setShippingAddressOnCartMutation
setShippingAddressOnCartMutation,
{ fetchPolicy: 'no-cache' }
);
const values = useMemo(
() =>
Expand Down

0 comments on commit f537d1c

Please sign in to comment.