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-29 16:51:46 +08:00
committed by dayuan.jiang
parent 19dd4e287f
commit 1b96325fea

View File

@@ -953,6 +953,7 @@ export default function ChatPanel({
dict.dialogs.clearSuccess,
buildSessionData,
setDiagramHistory,
pathname,
])
const handleInputChange = (