Browse Source

Enable caching in client library

pull/4223/head
Andrew Kingston 5 years ago
parent
commit
fa5bec03ff
  1. 3
      packages/client/src/api/api.js

3
packages/client/src/api/api.js

@ -2,6 +2,9 @@ import { createAPIClient } from "@budibase/frontend-core"
import { notificationStore } from "../stores" import { notificationStore } from "../stores"
export const API = createAPIClient({ export const API = createAPIClient({
// Enable caching of cacheable endpoints to speed things up,
enableCaching: true,
// Attach client specific headers // Attach client specific headers
attachHeaders: headers => { attachHeaders: headers => {
// Attach app ID header // Attach app ID header

Loading…
Cancel
Save