adopted-ember-addons / adopted-ember-addons/ember-data-model-fragments

Undefined as a DefaultValue

Abierto
#304 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la 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

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.