adopted-ember-addons / adopted-ember-addons/ember-impagination

Documentation doesn't explain record states

Abierto
#41 1 comentario 0 reacciones 0 asignados Ver en GitHub
Beginner Friendly documentation
Lenguaje dominante
JavaScript
Estrellas
123
Forks
12
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I can see that records have these four properties:
- isPending
- isRejected
- isRequested
- isResolved

I gather that when `isResolved = true` the `record.content` property is fulfilled and I can render my template. I'm guessing that `isRejected` is true if the load failed. What is the difference between `isPending` and `isRequested`?

Probably all four should be explained in the documentation with some sort of sample template logic. Example:

``` handlebars
{{#if record.isResolved}}
{{#with record.content as |model|}}

{{model.name}}

{{/with}}
{{else if record.isRejected}}
Error

{{else}}
Loading...

{{/if}}
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.