adopted-ember-addons / adopted-ember-addons/ember-data-model-fragments
Undefined as a DefaultValue
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 367
- Forks
- 108
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100