Skip to content

Should ITable extensions use saveState by default? #375

@mwouts

Description

@mwouts

I have an ITable component in a Dash app. The table is refreshed periodically. When the data changes the underlying datatable object gets destroyed and re-created, and it loses its state, e.g. the columns that were unselected with the colvis button re-appear.

I see that simply passing saveState = True to the component (through update_itable_outputs) solves that problem. Should I make saveState = True the default in the app components (they all do a destroy / recreate when the table changes) ? @AllanJard do you see a potential drawback of doing so ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions