Skip to content

Refactor cart fetching logic and improve error handling #1515

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

Merged
merged 3 commits into from
Jul 3, 2025
Merged

Conversation

w3bdesign
Copy link
Owner

Replaces the use of useQuery and refetch with a new fetchCart method using $apollo and useAsyncData for cart data retrieval. Updates cartUpdater.js to call fetchCart on plugin initialization instead of refetching on every route change. Improves error handling and simplifies cart clearing logic.

Replaces the use of useQuery and refetch with a new fetchCart method using $apollo and useAsyncData for cart data retrieval. Updates cartUpdater.js to call fetchCart on plugin initialization instead of refetching on every route change. Improves error handling and simplifies cart clearing logic.
Copy link

vercel bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuxtjs-woocommerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 6:23pm

Reformatted the mapping in clearCart to use a multi-line object for better code clarity and consistency.
Copy link

sonarqubecloud bot commented Jul 3, 2025

@w3bdesign w3bdesign merged commit e228d1c into master Jul 3, 2025
8 checks passed
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.

1 participant