Grokking React Advanced
Vote

0% completed

​

Selectors, Entity Adapters and RTK Query

A selector that filters the to-do list inside useSelector makes its component render again after every action that changes the state, even an action that changes only the loading status. The lesson "Connecting Redux to Your React Application" showed this, and react-redux warned about it. That lesson avoided the problem by computing the visible to-dos while the component renders.

This lesson continues the to-do app from "Using Redux Toolkit", which rewrote it with three slices (todos, filter and load), the fetchTodos thunk made with createAsyncThunk, and a store made with

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content