Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

303 B
Raw Blame
import { useCallback, useState } from 'react';

export function useSwitchDebugMode() {
  const [isDebugMode, setIsDebugMode] = useState(false);

  const switchDebugMode = useCallback(() => {
    setIsDebugMode(!isDebugMode);
  }, [isDebugMode]);

  return {
    isDebugMode,
    switchDebugMode,
  };
}