[Bug]: The ReadData method is executed once when the datagrid component throws an exception #5566
Labels
Area: DataGrid
Status: Repro Missing
Type: Possible Bug
Needs to investigate more to see if it's an actual bug.
Blazorise Version
1.2.3
What Blazorise provider are you running on?
Bootstrap5
Link to minimal reproduction or a simple code snippet
Steps to reproduce
When using the ReadData method of the datagrid component to simulate reading data from the database, if any error is triggered on the page (for example, clicking the button to throw an exception in the example code), the ReadData method is executed once. This results in an additional database query. I merely threw an exception, and it inexplicably executed a query, which seems very strange. I think it shouldn't execute a query when an exception is triggered.
What is expected?
When an exception is thrown, the ReadData method should not be executed.
What is actually happening?
1
What browsers do you see the problem on?
Chrome
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: