Buy me a coffee if this is useful 😀
https://www.buymeacoffee.com/rowadz
In this video, I'm explaining how to normalize the state shape according to the redux documentation
A follow-up video about saving multiple adapters state in the same slice
• 05 - Combining multiple createEntityA...
previous video about normalizing the state
• 07 - Normalizing the State Shape an i...
more on create entity adapter
• Entity Adapter CRUD - redux toolkit
repo:
https://github.com/Rowadz/react-redux...
docs:
https://redux-toolkit.js.org/api/crea...
redux toolkit videos:
• 🏟️ Redux Toolkit 🏟️
redux and react videos
• ⚛️ Redux & React ⚛️
00:00 Introduction
00:55 What does the createEntityAdapter function do
03:09 Looking at the docs example
04:00 The "generated" action creators
05:16 Creating a thunk to get data
07:36 Creating the users slice
08:12 Creating the users adapter and putting them into reducers
10:33 Using setAll action creator
11:07 Adding our new slice to the store
11:30 Dispatching actions/async actions in the Users component
13:10 Looking at the redux devtool
14:18 normalizing the nested objects
Смотрите видео 08 - Setting up our state with createEntityAdapter functions and thunks онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rowadz 04 Январь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 6,797 раз и оно понравилось 144 людям.