[DataGrid] onPageChange shouldn't fire on first render #228
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
Current Behavior 😯
onPageChange
is triggered during the first display of the grid.Expected Behavior 🤔
onPageChange
should only be triggered when the first page changes. Unless the developer is providing value, it should use 1 as the default value, and hence, no even should be fired.Steps to Reproduce 🕹
Steps:
Context 🔦
I have found this surprising behavior when working on the server-side pagination demo.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: