shlogg · Early preview
Ramu Narasinga @karthik-m22

Action Labels In LobeChat DevTools: Namespace Usage Explained

LobeChat uses Zustand for state management & DevTools for debugging. Action labels use Namespace to identify actions, ensuring Redux DevTools show accurate action names.

In this article, we will look at how the action labels use Namespace in LobeChat devtools. I want to provide a bit of an introduction to the terms such action labels, devtools and how/why they come into the picture.
LobeChat uses Zustand for its state management and has DevTools configured for debugging purposes. When you see DevTools configured, you will have action labels for the Zustand.


  
  
  What is action label?

In the set, you will have to provide action label, otherwise this action appears as anonymous in your Redux DevTools.

  
  
  Example from the documentation


addFish: () =...