wesnishio / react

The library for web and native user interfaces.
https://react.dev
MIT License
0 stars 0 forks source link

Bug: Internal React error: Expected static flag was missing. #1

Open wesnishio opened 8 months ago

wesnishio commented 8 months ago

This error arose while implementing a feature to collapse reply comments in the comment section of a website. You can find the potentially problematic code here.

Versions:

Next.js: 14.1.3 React: 18 Steps To Reproduce Go to this code sandbox. Open the page. Check the console for the error message. Additional Repositories Repository with the potentially problematic code: Fun117/my-react-issues Repository where the feature (reply comment collapsing) is planned to be added: selcold/scratch-building The current behavior An error occurs due to the malfunctioning show/hide comments feature, particularly an unexpected internal React error. Error-causing file

The expected behavior

The show/hide comments feature should function correctly without any errors.