mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-08 20:30:20 +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,
|
dict.dialogs.clearSuccess,
|
||||||
buildSessionData,
|
buildSessionData,
|
||||||
setDiagramHistory,
|
setDiagramHistory,
|
||||||
|
pathname,
|
||||||
])
|
])
|
||||||
|
|
||||||
const handleInputChange = (
|
const handleInputChange = (
|
||||||
|
|||||||
Reference in New Issue
Block a user