plotly / dash-ag-grid

Dash AG Grid is a high-performance and highly customizable component that wraps AG Grid, designed for creating rich datagrids.
https://dash.plotly.com/dash-ag-grid
MIT License
176 stars 28 forks source link

virtualRowData: if it is an Input in a callback, the memory usage of the website would always go up without collected #306

Open littlefishna opened 4 months ago

littlefishna commented 4 months ago
@app.callback(
    Output("XX", "data"),
    Input("ag_grid", "virtualRowData"),
    prevent_initial_call=True,
)
def demo(data):
    return YY

A small demo to indicate that if putting virtualRowData as Input, the memory usage of the website will always go higher without being collected. ( Assume the ag grid table is updated every 2 seconds)

I know it is not recommend to put it into Input, but sometimes it is useful to do so.