React · Middle · Question 39 of 75
What does createEntityAdapter give you?
- ✓Correct answer:
{ ids, entities }normalization and CRUD reducers - 2A direct database connection from the Redux store
- 3Automatic entity validation against a JSON schema
Explanation
Normalization stores each entity once by id, which simplifies updates and lookups. The adapter provides addOne, upsertMany, removeOne, setAll and the selectors selectAll, selectById, and supports sorting.