Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Design and build reusable Convex components with isolated tables, backend functions, and app-facing wrappers.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/hybrid-components.md
1# Hybrid Convex Components23Read this file only when the user explicitly wants a hybrid setup.45## What This Means67A hybrid component combines a local Convex component with shared library code.89This can help when:1011- the user wants a local install but also shared package logic12- the component needs extension points or override hooks13- some logic should live in normal TypeScript code outside the component14boundary1516## Default Advice1718Treat hybrid as an advanced option, not the default.1920Before choosing it, ask:2122- Why is a plain local component not enough?23- Why is a packaged component not enough?24- What exactly needs to stay overridable or shared?2526If the answer is vague, fall back to local or packaged.2728## Risks2930- More moving parts31- Harder upgrades and backwards compatibility32- Easier to blur the component boundary3334## Checklist3536- [ ] User explicitly needs hybrid behavior37- [ ] Local-only and packaged-only options were considered first38- [ ] The extension points are clearly defined before coding39