rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
9 lines (8 loc) • 344 B
JavaScript
// import type { CallServerCallback } from "react-server-dom-webpack/client.browser";
export function isActionResponse(value) {
return (typeof value === "object" &&
value !== null &&
"__rw_action_response" in value &&
typeof value.__rw_action_response === "object" &&
value.__rw_action_response !== null);
}