fix_reloading_errors #24

Merged
brian merged 12 commits from fix_reloading_errors into main 2024-03-06 20:16:47 +01:00
Showing only changes of commit 4495cb1bef - Show all commits
+3 -13
View File
@@ -1,23 +1,13 @@
from __future__ import annotations
import logging
import os
from dash import dcc
from dash import html
storage_type = 'session'
if 'ENV' in os.environ and os.getenv('ENV') == 'DEV':
storage_type = 'memory'
logging.info(
'ENV=DEV -> dcc.Stores changed to storage_type=%s',
storage_type,
)
stores_element = html.Div(
children=[
dcc.Store(id='alert-message', storage_type=storage_type, data=''),
dcc.Store(id='success-message', storage_type=storage_type, data=''),
dcc.Store(id='vis-com-name', storage_type=storage_type, data=''),
dcc.Store(id='alert-message', data=''),
dcc.Store(id='success-message', data=''),
dcc.Store(id='vis-com-name', data=''),
],
)