...

/

How to Log Draft State Values

How to Log Draft State Values

Learn how to log state draft values within your Redux toolkit application.

Logging state values may seem like a trivial task that shouldn’t make it into a course. What could be difficult about placing a console.log within a reducer created via createSlice?

Well, we’ll arrive at an easier answer by just going on to add a console.log!

The problem with console.log

Whenever we fetch new ...