A function that takes the request payload and returns an Effect program
representing the RPC call and its response.
Example
constgetUser = useRPCRequest(userRpcGroup, "getUser"); constprogram = getUser({ id:"123" }); // program is an Effect that, when run, will perform the RPC call and return the user data.
Creates a function to perform an RPC request using the provided RPC group and request name.
This hook returns a function that, when called with the appropriate payload, constructs an Effect program that: