You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Props to pass to the component (can include async_prop values)
options
Hash
Additional rendering options
Options
Option
Type
Default
Description
:prerender
Boolean
true
Enable server-side rendering
:streaming
Boolean
true
Enable streaming SSR (requires prerender)
:trace
Boolean
false
Enable performance tracing
React Component Props
getReactOnRailsAsyncProp
Async prop accessor injected into Server Components by addAsyncPropsCapabilityToComponentProps().
The function returns the same Promise on repeated calls for the same prop name.
// config/react_on_rails_pro.jsmodule.exports={// Streaming settingsstreamingSSR: true,shellTimeout: 5000,// ms to wait for shell before fallback// AsyncPropsManager settingsasyncPropsTimeout: 30000,// ms per async prop// Error handlingonRenderError: (error,componentName)=>{console.error(`Render error in ${componentName}:`,error);}};