mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-24 08:36:39 +08:00
✨[Error] Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
error (intercept-console-error.js:57) getRootForUpdatedFiber (react-dom-client.development.js:3899) dispatchSetStateInternal (react-dom-client.development.js:8249) dispatchSetState (react-dom-client.development.js:8209) (anonymous function) (react-tooltip.min.mjs:18:14416)
This commit is contained in:
@ -37,7 +37,6 @@ const Welcome: FC<IWelcomeProps> = ({
|
||||
savedInputs,
|
||||
onInputsChange,
|
||||
}) => {
|
||||
console.log(promptConfig)
|
||||
const { t } = useTranslation()
|
||||
const hasVar = promptConfig.prompt_variables.length > 0
|
||||
const [isFold, setIsFold] = useState<boolean>(true)
|
||||
|
||||
Reference in New Issue
Block a user