Ok turns out I can be dumb too
This commit is contained in:
parent
caed6d373c
commit
0c7b9e0537
2 changed files with 9 additions and 3 deletions
|
|
@ -327,7 +327,7 @@ export const useStreamResponse = ({
|
|||
if (updatedMessage || newMessage) {
|
||||
updated = prev.map((c) => {
|
||||
if (c.id !== conversationId) return c
|
||||
const messages = c.messages
|
||||
let messages = [...c.messages]
|
||||
|
||||
if (updatedMessage) {
|
||||
messages.splice(-1, 1, updatedMessage)
|
||||
|
|
|
|||
|
|
@ -3,8 +3,14 @@ import { createRoot } from 'react-dom/client'
|
|||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
const ENABLE_STRICT_MODE = true
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
ENABLE_STRICT_MODE ? (
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>
|
||||
) : (
|
||||
<App />
|
||||
</StrictMode>
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue