1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Bump frontend dependencies & setup better urql cache

This commit is contained in:
Quentin Gliech
2023-04-19 11:24:20 +02:00
parent a6704813c1
commit 558ee7f197
8 changed files with 2160 additions and 325 deletions

View File

@@ -12,14 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import {
createClient,
dedupExchange,
cacheExchange,
fetchExchange,
} from "@urql/core";
import { createClient, fetchExchange } from "@urql/core";
import { cacheExchange } from "@urql/exchange-graphcache";
import schema from "./gql/schema";
export const client = createClient({
url: "/graphql",
exchanges: [dedupExchange, cacheExchange, fetchExchange],
exchanges: [cacheExchange({ schema }), fetchExchange],
});