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
{{ message }}
Repository navigation
Compat client templates can skip an eager parent prop exception after a render-phase update #2597
Migrate this React TSX module in compatibility mode with the codemod. It also reproduces when authored with the corresponding Octane template.
import{useState}from'react';functionlabel(ready: boolean){if(!ready)thrownewError('unready');return'ready';}functionChild({ name }: {name: string}){return<b>{name}</b>;}exportfunctionApp(){const[ready,setReady]=useState(false);if(!ready)setReady(true);return<Childname={label(ready)}/>;}
Actual behavior
React 19.2.7 reports the unready render error on both client and server. Octane 0.17.0 and the current source compiler report the same error on the server. Their client output skips label(false) and mounts ready.
As a control, evaluating const name = label(ready) before returning <Child name={name} /> makes both Octane renderers report the error.
Expected behavior
React's render-phase update contract lets the parent finish evaluating its return expression before retrying, while keeping discarded child mounts from committing. Can Octane preserve an eager parent prop expression and any error it throws while retaining the existing child guard? Strong can continue to diagnose render-phase state updates.
Activity