92green / enty

Normalized State Management
MIT License
6 stars 1 forks source link

Add results parameter to EntityApi factory to provide initial results #185

Closed allanhortle closed 3 years ago

allanhortle commented 3 years ago

Each item in the results array is treated as a successful response from the api and is normalized into the initial state with a successful request state. This allows the store to be primed with data on the server side and let react views render synchronously.

It wont prevent loading states if not enough data is given to the views, but worst case it will render a loader to the output.