Adds pathname to effect dependencies

Ensures the effect hook updates correctly when the pathname changes,
improving synchronization with route-based state changes.
This commit is contained in:
shibamudi
2026-01-30 00:02:26 +09:00
committed by dayuan.jiang
parent 19dd4e287f
commit 1b96325fea
+1
View File
@@ -953,6 +953,7 @@ export default function ChatPanel({
dict.dialogs.clearSuccess, dict.dialogs.clearSuccess,
buildSessionData, buildSessionData,
setDiagramHistory, setDiagramHistory,
pathname,
]) ])
const handleInputChange = ( const handleInputChange = (