From 8472c0aacc857f255e5b8d0858413f9da5aa1735 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 4 Jan 2023 21:47:57 -0500 Subject: [PATCH] Format --- .changeset/four-parrots-poke.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.changeset/four-parrots-poke.md b/.changeset/four-parrots-poke.md index d2fb0f8d..ec5bb64d 100644 --- a/.changeset/four-parrots-poke.md +++ b/.changeset/four-parrots-poke.md @@ -3,6 +3,7 @@ --- Remove UNSAFE method from react-json-tree + - Replace `shouldExpandNode` with `shouldExpandNodeInitially`. 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 calling `shouldExpandNode` 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` to `16.8.0` so that `react-json-tree` can use hooks. - Tightened TypeScript prop types to use `unknown` instead of `any` where possible.