Enable caching in client library
This commit is contained in:
parent
7c669459b4
commit
fa5bec03ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue