Skip to content

[Compiler Bug]: #38414

Backlog
Backlog

Description

@hasannahied073-tech

What kind of issue is this?

  • React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
  • babel-plugin-react-compiler (build issue installing or using the Babel plugin)
  • eslint-plugin-react-hooks (build issue installing or using the eslint plugin)
  • react-compiler-healthcheck (build issue installing or using the healthcheck script)

Link to repro

[email protected]

Repro steps

import { useEffect, useRef, useState } from 'react';
import { renderCounterRegistry, useRenderCounter } from 'react-compiler-runtime';

export function App() {
const [updates, setUpdates] = useState(0);
const log = useRef(null);
useRenderCounter('App');

useEffect(() => {
// Observe after the counter's effect without triggering another render.
const registered = renderCounterRegistry.get('App')?.size ?? 0;
log.current.textContent += Updates: ${updates}; registered counters: ${registered}\n;
}, [updates]);

return (


React Compiler render counter registration


Expected: one registered counter while this component is mounted.


<button onClick={() => setUpdates(updates + 1)}>Update component: {updates}


);
}

How often does this bug happen?

Every time

What version of React are you using?

2289122421307729

What version of React Compiler are you using?

2289122421307729

Activity

  1. added
    Status: Unconfirmed
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedType: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions