Something went wrong. Try again.
Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
Something went wrong. Try again.
326 B · 11 lines
Svelte
at main
123456789101112<script> import { setContextClient, Client, cacheExchange, fetchExchange } from "@urql/svelte"; import PokemonList from "./PokemonList.svelte";
setContextClient(new Client({ url: "https://trygql.formidable.dev/graphql/basic-pokedex", exchanges: [cacheExchange, fetchExchange], }));</script>
<PokemonList />