(f: (current: string | null) => string | null)
| 293 | } |
| 294 | |
| 295 | const onStreamingText = (f: (current: string | null) => string | null) => { |
| 296 | const next = f(state.streamingText) |
| 297 | if (next !== state.streamingText) { |
| 298 | state = { ...state, streamingText: next } |
| 299 | history.push({ ...state }) |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | const deps: ApplyLocalQueryEventDeps = { |
| 304 | setMessages, |
no test coverage detected