Skip to content

Instantly share code, notes, and snippets.

@helielson
Last active October 29, 2018 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helielson/52e37395425954756e5b0158898cfca0 to your computer and use it in GitHub Desktop.
Save helielson/52e37395425954756e5b0158898cfca0 to your computer and use it in GitHub Desktop.
const profileInfoViewed = (fromComponent, profile) => {
const { id, name, age, homeLocation } = profile;
eventsAPI(
'ProfileInfoViewed',
fromComponent,
{ id, name, age, city: homeLocation.title }
);
};
export const profileInfoViewedFragment = graphql`
fragment eventsProfileInfoViewedFragment on Profile {
id
age
name
homeLocation {
title
}
}
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment