-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix show all feature for json tree #246
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for reablocks-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
* The limit for the number of nodes to show when `showAll` is false. | ||
*/ | ||
showAllLimit?: number; |
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.
showAllLimit
is kind of a confusing name imo, but I get you're not tryna break the API. Not even sure what a good name would be anyway, maybe expandCount
- similar to the existing expandDepth
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.
or expandLimit
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.
eh none of those are great haha
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.
Agreed odd name but she just followed the other name. I think fine for now.
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.
yea didn't want to change it as it'd be a breaking change
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #245
What is the new behavior?
showAll
defaults infinity list size toInfinity
and ignores showAllLimit. it also gets propagated through to child nodesshowAllLimit
gets propagated through to child nodes. also updated the comment to show whenshowAll
is falseshowAll
Does this PR introduce a breaking change?
Other information