-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pure render for tree data, fixes React Canary useMemo/useState Strict…
…Mode (#5835) * Pure render for useTreeData * adjust some more calls * fix accumulation of build trees * better readability * fix typo * fix remaining broken tests * revert canary testing changes * fix lint * updating naming and making things a bit easier to read * make sure a new map is always generated in insert for purity * make useTreeData always use and return a new Map this avoids the case where we may inadvertantly modify the previous map directly which could be problematic in a double render * guard against empy array in remove --------- Co-authored-by: Daniel Lu <[email protected]>
- Loading branch information
1 parent
3973a77
commit 7122c20
Showing
2 changed files
with
84 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7122c20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verdaccio builds:
CRA Test App
NextJS Test App
RAC Tailwind Example
RAC Spectrum + Tailwind Example
CRA Test App Size
NextJS App Size
Publish stats
Size diff since last release
Docs
Storybook