Β―\(γ)/Β― no idea how version 9 was skipped when I ran npm publish
but we've jumped from v8 to v10 directly Β―\(γ)/Β―
Note
I've joined the React team, specifically working on React tooling. This role has opened up exciting opportunities to enhance the developer experience for React usersβ and your input could offer valuable insights to help me with this effort. Please join the conversation in the discussion thread!
Breaking Changes
- 45fcdcf, 7b6fc5c, 0b3cdd9, 7eed9c5 - Now supports React 19 ππΎ
- Older versions are not supported, however I've created version branches with specific readme for older versions and added that information to the main readme:
- 0613270 - Advanced settings and exposed internals changes:
- Custom
notifier
callback props were renamed fromprevHook
andnextHook
toprevHookResult
andnextHookResult
- For advanced use-cases-
wdyrStore.hooksPerRender
was renamed towdyrStore.hooksInfoForCurrentRender
- Custom
Caution
The library was not tested with React Compiler at all. I believe it's completely incompatible with it.
Caution
Not all re-renders are "bad". Sometimes shenanigan to reduce re-renders can either hurt your App's performance or have a neglagable effect, in which case it would be just a waste of your efforts, and complicate your code. Try to focus on heavier components when optimizing and use the React profiler inside the React dev-tools to measure the effects of any changes.
New Features
- 1562bfc - Improved console colors so the text is now clearly visible in dark mode. This can be adjusted via the setting
textBackgroundColor
.
Internal
- cdd84dc, 2eb3f93, 6c617d6 - Re-worked how owner render reasons are detected
- 6bd8f0c - Fixed how the demo app is being ran and using
fast-refresh
instead of the oldhot-reload
- 0613270 - Made the detection of hooks in a new component much more simple, clear, and accurate
- 8cb3d36, 5e927f2 - Adjusted tests to React 19
- cd969a0 - Only testing the latest libraries that are compatible with
React 19
. - 7eed9c5 - Eliminated a warning that
forwardRef
functions accept exactly two parameters. Added a demo page forforwardRef
. - db2914c - Updated eslint to version 9
- 3fb801c - Removed all dev packages that were not used
- fcc8a8f, 1f524c0 - Updated the rest of the dev packages, and adjusted the code accordingly