mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-01 17:10:24 +08:00
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:
@@ -953,6 +953,7 @@ export default function ChatPanel({
|
||||
dict.dialogs.clearSuccess,
|
||||
buildSessionData,
|
||||
setDiagramHistory,
|
||||
pathname,
|
||||
])
|
||||
|
||||
const handleInputChange = (
|
||||
|
||||
Reference in New Issue
Block a user