GithubHelp home page GithubHelp logo

spences10 / sveltekit-with-urql Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 2.0 1.49 MB

An example of using URQL with SvelteKit

Home Page: https://sveltekit-with-urql.vercel.app/

HTML 5.95% Svelte 38.74% JavaScript 33.64% CSS 2.06% TypeScript 19.61%
svelte sveltekit urql rick-and-morty rickandmortyapi

sveltekit-with-urql's Introduction

sveltekit-with-urql's People

Contributors

renovate-bot avatar renovate[bot] avatar spences10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sveltekit-with-urql's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @playwright/test ^1.46.1
  • @sveltejs/adapter-auto ^3.2.4
  • @sveltejs/kit ^2.5.25
  • @sveltejs/vite-plugin-svelte ^3.1.2
  • @tailwindcss/typography ^0.5.15
  • @typescript-eslint/eslint-plugin ^8.3.0
  • @typescript-eslint/parser ^8.3.0
  • @urql/svelte ^4.2.1
  • autoprefixer ^10.4.20
  • daisyui ^4.12.10
  • eslint ^9.9.1
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-svelte ^2.43.0
  • graphql ^16.9.0
  • postcss ^8.4.41
  • postcss-load-config ^6.0.1
  • prettier ^3.3.3
  • prettier-plugin-svelte ^3.2.6
  • svelte ^4.2.19
  • svelte-check ^4.0.0
  • tailwindcss ^3.4.10
  • tslib ^2.7.0
  • typescript ^5.5.4
  • vite ^5.4.2
  • vitest ^2.0.5

  • Check this box to trigger a request for Renovate to run again on this repository

URQL for mutations?

Hello! This example repo is helpful in understanding how to execute GraphQL queries using urql in a Sveltekit project, but for the life of me I can't find an example of executing GraphQL mutations. It seems like the @urql/svelte library assumes you'll only be executing client-side mutations instead of server-side (i.e. within +page.server.js files). If you want to submit a form, for example, Sveltekit highly recommends Form Actions, which require using *.server.js files. However, server files don't have access to Context, which urql mutations use; I get an error when calling getContextClient from @urql/svelte within a +page.server.js, which makes sense.

Any ideas on using urql mutationStore in server files? Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.