Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor: Update shareCode in useEffect to avoid setState during render (#24468)
Eric Guo9260aa344589
diff --git a/web/context/web-app-context.tsx b/web/context/web-app-context.tsxindex e78ef81bbc2..deb7aea53c7 100644--- a/web/context/web-app-context.tsx+++ b/web/context/web-app-context.tsx@@ -64,7 +64,9 @@ const WebAppStoreProvider: FC<PropsWithChildren> = ({ children }) => {// Compute shareCode directlyconst shareCode = getShareCodeFromRedirectUrl(redirectUrlParam) || getShareCodeFromPathname(pathname)- updateShareCode(shareCode)+ useEffect(() => {+ updateShareCode(shareCode)+ }, [shareCode, updateShareCode])const { isFetching, data: accessModeResult } = useGetWebAppAccessModeByCode(shareCode)const [isFetchingAccessToken, setIsFetchingAccessToken] = useState(false)