1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

Enable caching in client library

This commit is contained in:
Andrew Kingston 2022-01-26 17:45:35 +00:00
parent a3f13508d8
commit 0b5d26b28b

View file

@ -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