Created
July 21, 2020 21:03
-
-
Save mlg87/1d71ffaa7bd88b73ebd17feceda6007e to your computer and use it in GitHub Desktop.
Using Apollo Client for global state management code samples - src/Balloon/defaults.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/Balloon/defaults.ts | |
import { IBalloon } from "../types/graphql"; // <-- we will auto-generate this file a bit later in the post | |
const defaultSelectedBalloon: IBalloon = { | |
color: "", | |
id: "", | |
}; | |
export default { | |
selectedBalloon: { ...defaultSelectedBalloon, __typename: "Balloon" }, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment