react-on-rails
Version:
react-on-rails JavaScript for react_on_rails Ruby gem
19 lines • 722 B
JavaScript
/* eslint-disable import/prefer-default-export -- named export for consistency with capability API */
/**
* SSR capability for RSC bundles.
* SSR methods throw because they are not supported in the RSC bundle.
*/
export function createSSRCapability() {
return {
handleError() {
throw new Error('"handleError" function is not supported in RSC bundle');
},
serverRenderReactComponent() {
throw new Error('"serverRenderReactComponent" function is not supported in RSC bundle');
},
prepareRenderResult() {
throw new Error('"prepareRenderResult" function is not supported in RSC bundle');
},
};
}
//# sourceMappingURL=ssr.rsc.js.map