Skip to content

dcc.Store() prevents loading of subsequent components #544

@SterlingButters

Description

@SterlingButters

Would it matter that I have the Store component within a Tab? I tried putting the Store component anywhere else at which point I get a loading dependency error. Any thoughts?

@app.callback(Output('tabs-content', 'children'),
              [Input('tabs', 'value')])
def render_content(tab):
    if tab == 'tab-1':
        return html.Div([

            dcc.Store(id='ticker-options-memory', storage_type='local'), # For DropDown Options
            # dcc.Store(id='ticker-selection-memory', storage_type='session'), # For DropDown Values

            dcc.Dropdown(
                id='stock-ticker-input',
                multi=True,
            ),

            dcc.Input(
                id='keyword',
                placeholder='Search Ticker Database',
                type='text',
                value=''
            ),

            html.Button('Add Results to Dropdown', id='add-results-button', n_clicks=0),
            html.Br(),

            dcc.DatePickerRange(
                id='date-picker-range',
                # start_date_placeholder_text= ,
                max_date_allowed=dt.date(dt.today()),
                start_date=dt.date(dt.today()) - timedelta(days=30),
                end_date=dt.date(dt.today()),
                calendar_orientation='vertical',
            ),
            html.Div(id='market-graph'),
        ])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions