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
Codemod can mark a root clean while it mounts an unchanged React hook component #2599
// leaf.ts, outside the selected inputsimport{createElement,useState}from'react';exportfunctionReactLeaf(props: {label: string}){const[label]=useState(props.label);returncreateElement('i',null,label);}
Actual behavior
The tool rewrites the root and its direct render call to Octane and reports Strong with zero findings. The imported leaf still calls React's useState. The original React root mounts the leaf. The migrated root throws because no React dispatcher owns the render.
Expected behavior
Report the renderer ownership mismatch when a direct rewritten root render reaches an unchanged local export whose original React hook call is provable. A selected leaf that migrates with the root and a leaf already owned by Octane should still convert normally.
Activity