Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Issue - Tax class loading taking time #108

Open
1 task
SunilP-WassDigital opened this issue Sep 4, 2024 · 0 comments
Open
1 task

Performance Issue - Tax class loading taking time #108

SunilP-WassDigital opened this issue Sep 4, 2024 · 0 comments
Labels

Comments

@SunilP-WassDigital
Copy link

SunilP-WassDigital commented Sep 4, 2024

Please fill out this template to help us diagnose and address your issue effectively.

Type: (Select one)

  • Bug Report

Summary:

In our website we have around 8000 customer group.

BC is calling graphQL to check price is including or excluding tax

image

image

image

It is taking more 1 min and still no response, BC app waiting until the graphql load then all component of app ill be load.

const getStoreTaxZoneRates = async () => {
const { taxZoneRates = [] } = await getTaxZoneRates();

if (taxZoneRates.length) {
const defaultTaxZone: TaxZoneRatesProps = taxZoneRates.find(
(taxZone: { id: number }) => [taxZone.id](https://taxzone.id/) === 1,
);
if (defaultTaxZone) {
const {
priceDisplaySettings: { showInclusive },
} = defaultTaxZone;
B3SStorage.set('showInclusiveTaxPrice', showInclusive);
store.dispatch(setShowInclusiveTaxPrice(showInclusive));
}
}
store.dispatch(setTaxZoneRates(taxZoneRates));
};`
@bc-victor bc-victor added the api label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants