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
import { | |
createClient, | |
Exchange, | |
Operation, | |
dedupExchange, | |
fetchExchange, | |
} from 'urql' | |
import { cacheExchange } from '@urql/exchange-graphcache' | |
import Prismic from 'prismic-javascript' | |
import { pipe, mergeMap, fromPromise, map } from 'wonka' |
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
function getDataFromEndpointA() { | |
const { data } = await client.query(myQueryForEndpointA, {}, { | |
clientName: 'endpoint-a', | |
}).toPromise() | |
return data | |
} | |
function getDataFromEndpointB() { | |
const { data } = await client.query(myQueryForEndpointB, {}, { |
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
{ | |
"name": "Creator Micro", | |
"vendorProductId": 1464657635, | |
"macros": [ | |
"", | |
"", | |
"", | |
"", | |
"", | |
"", |
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
import { IconName } from "./Icon.types"; | |
import { sprite } from "./sprite"; | |
export type IconProps = { | |
name: IconName; | |
title?: string; | |
label?: string; | |
className?: string; | |
style?: React.CSSProperties; | |
}; |