fix(app): recover state after sse reconnect and harden sse streams (#13973)
This commit is contained in:
parent
07947bab7d
commit
3dfbb70593
6 changed files with 75 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ export function applyGlobalEvent(input: {
|
|||
setGlobalProject: (next: Project[] | ((draft: Project[]) => void)) => void
|
||||
refresh: () => void
|
||||
}) {
|
||||
if (input.event.type === "global.disposed") {
|
||||
if (input.event.type === "global.disposed" || input.event.type === "server.connected") {
|
||||
input.refresh()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue