RSC and Server action with Websocket #59242
Replies: 1 comment
-
I remember on the JS Party podcast, the React team sort of talked about this:
I also answered a bit here: #56750 (comment) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Allow updating of component servers on the client from an event triggered exclusively on the backend (example: when the database is updated)
Allow the client to receive a server action sent by an event triggered exclusively on the backend
Non-Goals
No response
Background
Currently the only ways I know are to establish a websocket connection with the client, and either pass it the data to update and do it manually... or every time the client receives an update from the websocket it calls a server action which, via revalidatePath, updates everything
Proposal
.
Beta Was this translation helpful? Give feedback.
All reactions