From 6bbf99ef16dee5bd1d8059d5d09acb9ed8b6b0d1 Mon Sep 17 00:00:00 2001 From: Benjamin VIELLARD Date: Mon, 13 Feb 2023 13:04:28 +0100 Subject: [PATCH] fix(options): remove suspense option (urql react only) --- src/module.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/module.ts b/src/module.ts index 26223a8..236e724 100644 --- a/src/module.ts +++ b/src/module.ts @@ -4,10 +4,7 @@ import type { ClientOptions } from "@urql/core"; import defu from "defu"; // serializable URQL client options -export type ModuleClientOptions = Pick< - ClientOptions, - "preferGetMethod" | "requestPolicy" | "maskTypename" | "suspense" ->; +export type ModuleClientOptions = Pick; // Module options TypeScript inteface definition export interface ModuleOptions { @@ -34,7 +31,7 @@ export default defineNuxtModule({ // Default configuration options of the Nuxt module defaults: { ssrKey: "__URQL_DATA__", - endpoint: "http://host/graphql", + endpoint: "", client: "urql.config", }, async setup(options, nuxt) {