Skip to content

Commit

Permalink
[DataGrid] Fix loader flag from useDemoData hook (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanailH authored Mar 25, 2021
1 parent 69d2b65 commit c40d53f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/grid/x-grid-data-generator/src/useDemoData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const useDemoData = (options: DemoDataOptions): DemoDataReturnType => {
if (dataCache.has(cacheKey)) {
const newData = dataCache.get(cacheKey);
setData(newData);
setLoading(false);
return undefined;
}

Expand Down

0 comments on commit c40d53f

Please sign in to comment.