Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Multi-tab dash app : Placing `dcc.Store` component in different tabs

My multi-page / tabs dash app structure looks like:

  • index.py
  • app.py
    – Tabs
    — tab1.py
    — tab2.py

index.py renders the layout of from each file depending on the selection.

Now, I’d like to exchange component state / data between different tabs. tab1.py contains dcc.Graph and data-table and 'tab2.pycontains a series of dcc.Graph` components.

Do I need to add dcc.Store component in both tab1.py and tab2.py to store individual components and read from them?