Repository navigation
fix: two failing tests for React 19 RC - #40
tumugin (tumugin) wants to merge 2 commits into
Conversation
|
Test results for React 19 RC Test results for React 18 |
|
tumugin (@tumugin) thanks for contributing ❤️ Let me provide some context around. We were looking together with ling1726 today into it as I found out that the library does not behave well even with React 18... 😟 Here is a quick demo: https://stackblitz.com/edit/vitejs-vite-kd69zt
The issue is that fiber reference that we are using via We also noticed that |
|
Oleksandr Fediashov (@layershifter) Thanks for the information about the context. This sounds like a difficult problem to solve 😭😭😭😭 |

During testing with React 19 RC, I discovered that several tests for this library were failing.
This pull request addresses these failures by modifying the
useStrictMemohook to align with theReact.StrictModebehavior ofuseMemoin React 19 RC.To maintain compatibility with earlier React versions, I've included some minor workarounds.
React 19 RC changes: https://react.dev/blog/2024/04/25/react-19-upgrade-guide#strict-mode-improvements