You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/6/en/part6b.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -657,10 +657,18 @@ The following is printed to the console
657
657
658
658
The output is interesting but not very useful. This is about the previously mentioned Immer library used by the Redux Toolkit internally to save the state of the Store.
659
659
660
-
The status can be converted to a human-readable format, e.g. by converting it first to a string and then back to a JavaScript object as follows:
660
+
The status can be converted to a human-readable format by using the [current](https://redux-toolkit.js.org/api/other-exports#current) function from the immer library.
661
+
662
+
Update the imports to include the "current" function from the immer library:
663
+
664
+
```js
665
+
import { createSlice, current } from'@reduxjs/toolkit'// highlight-line
0 commit comments