Skip to content

Conversation

w3bdesign
Copy link
Owner

@w3bdesign w3bdesign commented Apr 10, 2025

  • Create dedicated CartInitializer component for cart state management
  • Move cart initialization to app root level in _app.tsx
  • Remove cart-related code from Layout component

This change improves separation of concerns and follows DRY principles by centralizing cart state initialization in a single location. The Layout component is now focused solely on page structure, making the codebase more maintainable.

- Create dedicated CartInitializer component for cart state management
- Move cart initialization to app root level in _app.tsx
- Remove cart-related code from Layout component

This change improves separation of concerns and follows DRY principles by
centralizing cart state initialization in a single location. The Layout
component is now focused solely on page structure, making the codebase
more maintainable.
@w3bdesign w3bdesign self-assigned this Apr 10, 2025
@w3bdesign w3bdesign linked an issue Apr 10, 2025 that may be closed by this pull request
Copy link

vercel bot commented Apr 10, 2025

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

Name Status Preview Comments Updated (UTC)
nextjs-woocommerce ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2025 10:36pm

Copy link

@w3bdesign w3bdesign merged commit e4121db into master Apr 10, 2025
11 checks passed
@w3bdesign w3bdesign deleted the 1484-refactor-layout branch April 10, 2025 22:41
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.

Refactor Layout
1 participant