Skip to content

Commit

Permalink
fix: queryCache should be QueryCache
Browse files Browse the repository at this point in the history
  • Loading branch information
benpsnyder committed May 13, 2024
1 parent 4a71398 commit 0f32eca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { useState } from 'react';
import intl from 'react-intl-universal';
import { Intent, Alert } from '@blueprintjs/core';
import { queryCache } from 'react-query';
import { QueryCache } from 'react-query';
import { FormattedMessage as T, AppToaster } from '@/components';

import withAccountsActions from '@/containers/Accounts/withAccountsActions';
Expand Down Expand Up @@ -38,7 +38,7 @@ function AccountBulkActivateAlert({
message: intl.get('the_accounts_has_been_successfully_activated'),
intent: Intent.SUCCESS,
});
queryCache.invalidateQueries('accounts-table');
QueryCache.invalidateQueries('accounts-table');
})
.catch((errors) => {})
.finally(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState } from 'react';
import { FormattedMessage as T } from '@/components';
import intl from 'react-intl-universal';
import { Intent, Alert } from '@blueprintjs/core';
import { queryCache } from 'react-query';
import { QueryCache } from 'react-query';
import { AppToaster } from '@/components';

import { handleDeleteErrors } from '@/containers/Accounts/utils';
Expand Down Expand Up @@ -48,7 +48,7 @@ function AccountBulkDeleteAlert({
message: intl.get('the_accounts_has_been_successfully_deleted'),
intent: Intent.SUCCESS,
});
queryCache.invalidateQueries('accounts-table');
QueryCache.invalidateQueries('accounts-table');
})
.catch((errors) => {
handleDeleteErrors(errors);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState } from 'react';
import { FormattedMessage as T } from '@/components';
import intl from 'react-intl-universal';
import { Intent, Alert } from '@blueprintjs/core';
import { queryCache } from 'react-query';
import { QueryCache } from 'react-query';
import { AppToaster } from '@/components';

import withAccountsActions from '@/containers/Accounts/withAccountsTableActions';
Expand Down Expand Up @@ -39,7 +39,7 @@ function AccountBulkInactivateAlert({
message: intl.get('the_accounts_have_been_successfully_inactivated'),
intent: Intent.SUCCESS,
});
queryCache.invalidateQueries('accounts-table');
QueryCache.invalidateQueries('accounts-table');
})
.catch((errors) => {})
.finally(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useCallback } from 'react';
import intl from 'react-intl-universal';
import { AppToaster, FormattedMessage as T } from '@/components';
import { Intent, Alert } from '@blueprintjs/core';
import { queryCache } from 'react-query';
import { QueryCache } from 'react-query';

import { useApproveEstimate } from '@/hooks/query';

Expand Down Expand Up @@ -40,7 +40,7 @@ function EstimateApproveAlert({
message: intl.get('the_estimate_has_been_approved_successfully'),
intent: Intent.SUCCESS,
});
queryCache.invalidateQueries('estimates-table');
QueryCache.invalidateQueries('estimates-table');
})
.catch((error) => {})
.finally(() => {
Expand Down

0 comments on commit 0f32eca

Please sign in to comment.