Skip to content

Infinite row model: getRowsRequest leaks into gridOptions → AG Grid "invalid gridOptions property" warning #465

@mlipatro

Description

@mlipatro

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

  1. Create an AgGrid with rowModelType="infinite".
  2. Wire a callback with Input(..., "getRowsRequest") and Output(..., "getRowsResponse") to serve row blocks.
  3. 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:

  • getRowRequestgetRowsRequest
  • getRowResponsegetRowsResponse

Expected behavior

getRowsRequest / getRowsResponse are Dash component props and should be filtered out before building gridOptions, so no AG Grid validation warning is emitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions