Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sastan/sveltekit-urql-example
- Owner: sastan
- Created: 2021-04-15T07:51:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-15T07:55:13.000Z (over 3 years ago)
- Last Synced: 2024-05-22T22:22:13.363Z (7 months ago)
- Language: Svelte
- Size: 9.77 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`