briebug / ngrx-auto-entity

NgRx Auto-Entity: Simplifying Reactive State
https://briebug.gitbook.io/ngrx-auto-entity/
Other
66 stars 12 forks source link

Feature: Selector for loadWasAttempted #218

Closed Wells-Codes closed 2 years ago

Wells-Codes commented 2 years ago

Sometimes we want to know if an entity has attempted a load. We currently have isLoading and loadedAt, but neither of those tell us if a load failed. The easiest way to set this value would be if isLoading === null, because it changes to true or false after the first attempt.

I'm sure we'll want to add this to the facade too.