I have a callback where I use derived_viewport_selected_rows as an input for user selection along with some buttons:
Input("add-button", "n_clicks"),
Input("clear-button", "n_clicks"),
Input("table", "derived_viewport_selected_rows")
I am noticing that when navigating away from the page the run table is rendered on, this callback will fire, causing some unintentional side effects in my app. My question is more specific to the documentation for derived_viewport_selected_rows Sorting, Filtering, Selecting, and Paging Natively | Dash for Python Documentation | Plotly. The documentation states:
derived_viewport_selected_rows
/derived_viewport_selected_row_ids
: the set of selected rows on the currently visible page.
Does the portion “on the currently visible page” imply that this callback may fire if the rows change visibility on the page i.e. the page is navigated away from and thus the rows are no longer visible?