Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sastan/sveltekit-urql-example

Example for using urql with sveltekit
https://github.com/sastan/sveltekit-urql-example

Last synced: 2 months ago
JSON representation

Example for using urql with sveltekit

Awesome Lists containing this project

README

        

# Sveltekit urql Example

## Important Changes

- [svelte.config.cjs](./svelte.config.cjs) – adjusted vite config
- [src/lib/graphql/client.ts](./src/lib/graphql/client.ts) – create urql client
- [src/routes/$layout.svelte](./src/routes/$layout.svelte) – initialize urql client and add query method to context
- [src/routes/index.svelte](./src/routes/index.svelte) – using `context.query`