Event patterns for JSON streaming #1902
Unanswered
mcavaliere
asked this question in
Help
Replies: 1 comment 1 reply
-
We have a Maybe it can be used here? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an app in which I'm using
streamObject
to stream a large-ish JSON object to the client. As each field becomes available, I am triggering different client-side events to update the UI.So let's say this is the schema:
I'm using
useEffect
to trigger different UI updates as the json becomes partially available:This gets a little ugly IMO. I'm wondering if there are other patterns for handling this that you recommend - either on the client or on the server?
Beta Was this translation helpful? Give feedback.
All reactions