leboncoin/spark-android
[FR]: Add legacy-pattern callout in COMPONENT_CREATION_GUIDE.md
已关闭
#2,118 创建于 2026年7月27日
contribution welcomeddocumentationgood first issuepriority:MEDIUM
仓库指标
- 星标
- (85 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Describe the problem
The guide documents the object-with-variant-methods pattern as the standard. Many existing components (Tags, Buttons) use per-variant top-level functions. Contributors studying existing code see a pattern the guide does not describe.
Describe the solution
Add a note near the architecture section stating that existing components may use a legacy pattern (per-variant top-level functions) and that new components should follow the object pattern.
Additional context
Priority: Medium. Effort: XS.