mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Merge pull request #5812 from ConnectAI-E/fix/rerender-chat
fix: use current session id to trigger rerender
This commit is contained in:
		@@ -2071,6 +2071,6 @@ function _Chat() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export function Chat() {
 | 
					export function Chat() {
 | 
				
			||||||
  const chatStore = useChatStore();
 | 
					  const chatStore = useChatStore();
 | 
				
			||||||
  const sessionIndex = chatStore.currentSessionIndex;
 | 
					  const session = chatStore.currentSession();
 | 
				
			||||||
  return <_Chat key={sessionIndex}></_Chat>;
 | 
					  return <_Chat key={session.id}></_Chat>;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user