Description
When using the infinite row model with the documented getRowsRequest / getRowsResponse callback pattern, AG Grid logs the following console warning after the first rows request:
AG Grid: invalid gridOptions property 'getRowsRequest' did you mean any of these:
getRowStyle, getRowHeight, getLocaleText, getRowClass, getGroupRowAgg, onRowSelected,
onStoreRefreshed, onRowResizeStarted.
If you are trying to annotate gridOptions with application data, use the
'gridOptions.context' property instead.
Infinite scrolling still works correctly — the warning appears to be cosmetic.
dash-ag-grid version: 35.2.0
AG Grid version: bundled with 35.2.0
Environment: Dash (Python), rowModelType="infinite"
Steps to reproduce
- Create an
AgGrid with rowModelType="infinite".
- Wire a callback with
Input(..., "getRowsRequest") and Output(..., "getRowsResponse") to serve row blocks.
- Scroll to trigger a rows request and observe the browser console.
Root cause (from inspecting the bundled component)
In the render path, all props except a small destructured set are spread into the object handed to AG Grid:
rg = omit(props, ["id", "style", "className", "dashGridOptions"]);
gridOptions = process({ ...dashGridOptions, ...rg }); // passed to AG Grid
Dash-only props are meant to be removed via an internal strip list, but that list contains a typo — singular Row instead of plural Rows:
[ ..., "getRowRequest", "getRowResponse", ... ] // should be getRowsRequest / getRowsResponse
Because getRowRequest / getRowResponse never match the real prop names (getRowsRequest / getRowsResponse), these props are not stripped and leak into gridOptions. AG Grid's option validator then warns about the unknown key.
getRowsResponse leaks too, but it is reset to null after each batch (and the validator skips nullish values), so only getRowsRequest — which retains the last request — surfaces the warning.
Suggested fix
Correct the strip-list entries to the actual prop names:
getRowRequest → getRowsRequest
getRowResponse → getRowsResponse
Expected behavior
getRowsRequest / getRowsResponse are Dash component props and should be filtered out before building gridOptions, so no AG Grid validation warning is emitted.
Description
When using the infinite row model with the documented
getRowsRequest/getRowsResponsecallback pattern, AG Grid logs the following console warning after the first rows request:Infinite scrolling still works correctly — the warning appears to be cosmetic.
dash-ag-grid version: 35.2.0
AG Grid version: bundled with 35.2.0
Environment: Dash (Python),
rowModelType="infinite"Steps to reproduce
AgGridwithrowModelType="infinite".Input(..., "getRowsRequest")andOutput(..., "getRowsResponse")to serve row blocks.Root cause (from inspecting the bundled component)
In the render path, all props except a small destructured set are spread into the object handed to AG Grid:
Dash-only props are meant to be removed via an internal strip list, but that list contains a typo — singular
Rowinstead of pluralRows:Because
getRowRequest/getRowResponsenever match the real prop names (getRowsRequest/getRowsResponse), these props are not stripped and leak intogridOptions. AG Grid's option validator then warns about the unknown key.getRowsResponseleaks too, but it is reset tonullafter each batch (and the validator skips nullish values), so onlygetRowsRequest— which retains the last request — surfaces the warning.Suggested fix
Correct the strip-list entries to the actual prop names:
getRowRequest→getRowsRequestgetRowResponse→getRowsResponseExpected behavior
getRowsRequest/getRowsResponseare Dash component props and should be filtered out before buildinggridOptions, so no AG Grid validation warning is emitted.