From 0b5d26b28b409f6391616e47d59263f2028cd1b3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 26 Jan 2022 17:45:35 +0000 Subject: [PATCH] Enable caching in client library --- packages/client/src/api/api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/client/src/api/api.js b/packages/client/src/api/api.js index 469f01f6f5..81e7103f4f 100644 --- a/packages/client/src/api/api.js +++ b/packages/client/src/api/api.js @@ -2,6 +2,9 @@ import { createAPIClient } from "@budibase/frontend-core" import { notificationStore } from "../stores" export const API = createAPIClient({ + // Enable caching of cacheable endpoints to speed things up, + enableCaching: true, + // Attach client specific headers attachHeaders: headers => { // Attach app ID header