Skip to content

Commit

Permalink
refactor(App.tsx): add storageType and key to cacheOptions for better…
Browse files Browse the repository at this point in the history
… cache management

The changes were made to improve cache management in the application by adding the storageType and key properties to the cacheOptions object. This allows for more control and customization of caching behavior, enhancing the overall performance and user experience.
  • Loading branch information
ktun95 committed Nov 22, 2024
1 parent 32ac19c commit 1e55a65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/stock-center/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { CssBaseline, CircularProgress } from "@material-ui/core"
import { useGraphqlClient, useApolloClientCache } from "@dictybase/data-access"
import {
useGraphqlClient,
useApolloClientCache,
storageType,
} from "@dictybase/data-access"
import {
listStrainsPagination,
listPlasmidsPagination,
Expand Down Expand Up @@ -32,6 +36,8 @@ const logtoConfig: LogtoConfig = {
}

const cacheOptions = {
storage: storageType.INDEX,
key: "DICTY-STOCKCENTER",
customPolicies: {
Query: {
fields: {
Expand Down

0 comments on commit 1e55a65

Please sign in to comment.