Matches the given routes to a Request and returns a RSC Response encoding an RSCPayload
for consumption by a RSC enabled client router.
Your react-server-dom-xyz/server
's decodeAction
function, responsible for loading a server action.
Your react-server-dom-xyz/server
's decodeReply
function, used to decode the server function's arguments and bind them to the implementation for invocation by the router.
A function responsible for decoding form state for progressively enhanceable forms with useActionState
using your react-server-dom-xyz/server
's decodeFormState
.
A function responsible for using your renderToReadableStream
to generate a Response encoding the RSCPayload
.
Your react-server-dom-xyz/server
's loadServerAction
function, used to load a server action by ID.
The request to match against.
Your route definitions.