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

Fix heavy sideeffects of alertdialog #9

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

Xanonymous-GitHub
Copy link
Owner

Description

In #5, we've introduced the sweatalert2 package to help us make a pretty alert dialog when clicking the AddToBasket button on the shop page. However, this package's internal implementation tries to make large-scope DOM update then causes our product list refresh, which is really bad for performance and UX.

So here I dropped it and use another sweatalert to do the same thing.
This time, the new package won't do a lot of things when showing the dialog.

Copy link

netlify bot commented Feb 14, 2024

Deploy Preview for helpful-beignet-62ff6d ready!

Name Link
🔨 Latest commit 037c695
🔍 Latest deploy log https://app.netlify.com/sites/helpful-beignet-62ff6d/deploys/65cd032c4479980008208f50
😎 Deploy Preview https://deploy-preview-9--helpful-beignet-62ff6d.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@wortley wortley merged commit a07c638 into main Feb 14, 2024
6 checks passed
@wortley wortley deleted the fix-heavy-sideeffects-of-alertdialog branch February 14, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants