-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[tree view] Expose the methods to manually refetch the children of an item #19248
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
Conversation
Deploy preview: https://deploy-preview-19248--material-ui-x.netlify.app/ Updated pages:
Bundle size report
|
c1d517c
to
4a2aa73
Compare
4a2aa73
to
42a17f0
Compare
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.
Nice work, LGTM 🎉
Leaving just a few small comments that are related to the docs 😄
<Button onClick={checkExpansion}> | ||
Check if the the Data Grid is expanded | ||
</Button> | ||
<Snackbar |
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.
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.
Clicking anywhere closes the snackbar, it's not specific to the button 👍
22a3fd5
to
fd5683f
Compare
fd5683f
to
1e31e5d
Compare
Bundle size report
|
Closes #18200
If we expose
publicAPI.fetchItems
, then we need to add a param to it to allow to skip the cache (otherwise the data is just read from the cache). The DX would not be great because people would always use this param.We could expose a
publicAPI.updateItems
then we have a good DX, but we need to update the behavior of the queue and I'm afraid to run into edge cases (if we have some requests in the queue that want to ignore the cache but not others). I'm not sure it's worth the complexity and potential bugs, which is why I sticked by the simplerpublicAPI.updateItem
which seems like a good starting point.