mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 19:13:56 +03:00
81926f3212
* Remove UNSAFE method from JSONTree * Bump peer dep * Fix types * Remove proptypes * Remove unused * shouldExpandNode => shouldExpandNodeInitially * Cleanup * Update usages * Tighten types * Create four-parrots-poke.md * Format * Fix inspector-monitor types * Fix log-monitor types * Fix rtk-query-monitor types * Fix type
805 B
805 B
react-json-tree |
---|
major |
Remove UNSAFE method from react-json-tree
- Replace
shouldExpandNode
withshouldExpandNodeInitially
. This function is now only called when a node in the tree is first rendered, when before it would update the expanded state of the node if the results of callingshouldExpandNode
changed between renders. There is no way to replicate the old behavior exactly, but the new behavior is the intended behavior for the use cases within Redux DevTools. Please open an issue if you need a way to programatically control the expanded state of nodes. - Bump the minimum React version from
16.3.0
to16.8.0
so thatreact-json-tree
can use hooks. - Tightened TypeScript prop types to use
unknown
instead ofany
where possible and make the key path arrayreadonly
.