The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Redux: Normalizing API Responses with normalizr

Redux: Normalizing API Responses with normalizr

7:58
We will learn how to use normalizr to convert all API responses to a normalized format so that we can simplify the reducers.
Watch this lesson now
Avatar
egghead.io

We will learn how to use normalizr to convert all API responses to a normalized format so that we can simplify the reducers.

Avatar
Jason

With normalizr 3.2.2 I had to:

import { schema } from 'normalizr';

export const todo = new schema.Entity('todos');
export const arrayOfTodos = new schema.Array(todo);
In reply to egghead.io
Avatar
Andre Zimpel

Would be very cool if you could show how to manage relational data with normalisr and redux! :-)

Avatar
Andre Zimpel

Especially when dealing with an API and success and failure and stuff like that.

In reply to Andre Zimpel
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?