Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
bchu1 committed Sep 24, 2024
1 parent 039a408 commit 7b90251
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions frontend/packages/data-portal/app/apollo.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const apolloClient = new ApolloClient({

export const apolloClientV2 = new ApolloClient({
ssrMode: true,
defaultOptions: {
query: {
fetchPolicy: 'no-cache',
},
},
// defaultOptions: {
// query: {
// fetchPolicy: 'no-cache',
// },
// },
cache: new InMemoryCache(),
link: createHttpLink({
uri: process.env.API_URL_V2 ?? ENVIRONMENT_CONTEXT_DEFAULT_VALUE.API_URL_V2,
Expand Down
4 changes: 0 additions & 4 deletions frontend/packages/data-portal/e2e/downloadDialog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ test.describe('downloadDialog', () => {
client = getApolloClient()
downloadDialogPage = new DownloadDialogPage(page)
downloadDialogActor = new DownloadDialogActor(downloadDialogPage)

await new Promise((resolve) => {
setTimeout(resolve, 2000)
})
})

test.describe('Single Dataset', () => {
Expand Down

0 comments on commit 7b90251

Please sign in to comment.