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: preserve React DOM resource effects from opaque dependency getters #2448
Render the original with React DOM server and the migrated component with standalone Octane SSR. Pass a fresh instance of these props to each renderer.
React emits a stylesheet link for /snapshot.css and <b>ok</b>. The migrated component emits <b>ok</b> without the link. The result reproduces in development and production on Octane 0.16.7 and React and React DOM 19.2.7.
The same difference occurs on main at 731927750, where the codemod retains the explicit dependency in compatibility mode, and in the proposed Strong migration that captures the getter at the original render site.
Expected
The migration should preserve the getter's renderer-owned resource effect or surface a diagnostic when it cannot establish that effect's ownership. The getter executes during server rendering, where React supports this use of preinit. React DOM API reference
Activity