Replies: 1 comment 3 replies
-
Same here Maybe storing each completed step into db and if user breaks off you send abort signal and you resume from last saved step |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using useChat which works well for streaming responses, but I'd like some way to resume the stream if the user reloads the page (or at the very least if the component unmounts). Is there any recommended way to do this? I was looking into potentially creating a service worker to receive the stream data, but it doesn't seem like the best approach as I'd have to reimplement a bunch of stuff already built into useChat.
Beta Was this translation helpful? Give feedback.
All reactions