adopted-ember-addons / adopted-ember-addons/ember-data-model-fragments
Undefined as a DefaultValue
未关闭
- 主要语言
- TypeScript
- 星标
- 367
- 派生
- 108
- PR 合并指标
- 30 天内没有已合并 PR
描述
It would be great, if we could write this: `property: fragment('pathToProp', { defaultValue: undefined })`
Sometimes it needs when a server sends incomplete data. And we should distinguish if an object/array is empty or undefined.
贡献指南
调研方向
Locate the fragment(...) entry point and inspect how defaultValue is handled for empty objects, arrays, and missing values. Confirm the expected distinction described in the issue, then add coverage for defaultValue: undefined and verify that existing empty-object and empty-array behavior remains distinct.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100