actions names in devtools (Redux toolkit) #1668
-
When inspecting Zustand's actions in Redux toolkit, all action names are labeled "anonymous". I tried to use both regular and arrow functions but it didn't change anything. Is there away to change the behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
You can specify action name in set. Line 425 in 0b55a3d If you don't, it will be anonymous. Line 442 in 0b55a3d |
Beta Was this translation helpful? Give feedback.
-
Is there a way to do this with reducers and dispatch pattern? I'm also getting anonymous logged in devtools
|
Beta Was this translation helpful? Give feedback.
You can specify action name in set.
zustand/readme.md
Line 425 in 0b55a3d
If you don't, it will be anonymous.
zustand/readme.md
Line 442 in 0b55a3d