migrate-custom-hooks-to-storefront-data

Migrate custom Medusa storefront hooks into storefront-data presets block-by-block.

2|Updated Dec 2, 2024
One-click install
npx skills add https://github.com/TechsioCZ/new-engine --skill migrate-custom-hooks-to-storefront-data
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: migrate-custom-hooks-to-storefront-data
Source: https://github.com/TechsioCZ/new-engine/tree/main/libs/storefront-data/skills/migrate-custom-hooks-to-storefront-data
Command: npx skills add https://github.com/TechsioCZ/new-engine --skill migrate-custom-hooks-to-storefront-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Load this skill to centralize migration of custom Medusa storefront hooks into the storefront-data preset system, avoiding dual data layers during cutovers.

Core Features & Use Cases

  • Centralized Preset Seam: centralize the new preset seam before replacing feature code.
  • One-block Cutover: replace vertical features one at a time to minimize risk.
  • Preserved Storefront UX: maintain storefront-specific callbacks and UX during migration.
  • Legacy Wrappers Cleanup: remove outdated wrappers after migration.
  • Use Case: migrate a set of hooks for a storefront page using a single preset.

Quick Start

Centralize the new storefront preset seam in your app before replacing feature code.

Frequently Asked Questions about migrate-custom-hooks-to-storefront-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate custom React hooks to storefront-data presets in Medusa?▼

Migrate custom React hooks to storefront-data presets by centralizing the new preset seam first, then replacing feature code one block at a time. This unifies architecture and avoids dual data layers during feature cutovers.

What is a preset seam in Medusa storefront-data migration?▼

A preset seam is the centralized integration point where storefront-data presets replace custom hooks. Establish this seam before replacing feature code to ensure callbacks are preserved and architecture stays unified during migration.

How do I avoid dual data layers when migrating Medusa storefront hooks?▼

Avoid dual data layers during Medusa storefront migration by replacing custom hooks with presets one vertical feature at a time. This block-by-block cutover strategy minimizes risk and removes legacy wrappers after migration.

Can I preserve storefront callbacks when migrating to storefront-data presets?▼

Yes, migrating to storefront-data presets preserves storefront-specific callbacks and UX. The migration proceeds block-by-block to maintain existing storefront patterns while centralizing the preset seam and aligning SDK usage.

When should I use storefront-data presets instead of custom hooks?▼

Use storefront-data presets instead of custom hooks when unifying Medusa app architecture during feature cutovers. This approach enforces migration best practices, centralizes data layers, and enables systematic removal of legacy wrappers.

What are the limitations of block-by-block storefront-data migration?▼

Block-by-block storefront-data migration requires proceeding one vertical feature at a time to minimize risk. It is limited to app architectures using Medusa storefront patterns and requires centralizing the preset seam before replacing feature code.