Dash-extensions 0.0.45 to 0.0.47 - GroupTransform to MultiplexerTransform and Inputs trigger

Has there been any update on this? I keep adding ifs as workarounds as prevent_initial_callbacks has no effect, but it has grown into a monster :slight_smile:

@jokin could you post an mwe of your issue? That is, code that works as intended with dash, but not with dash-extensions

Thanks for your prompt response. I do have a MWE, but I found that it reproduces the error both with dash and dash-extensions. Should I create another thread then? FYI, this is the MWE :

mwe.py :

import json
import dash_html_components as html
import dash_core_components as dcc
from dash_extensions.enrich import Output, DashProxy, Input, MultiplexerTransform
import mwe_test_component
app = DashProxy(title='MWE', transforms=[MultiplexerTransform()])


server = app.server
app.config.suppress_callback_exceptions = True


def serve_layout():
    return html.Div([dcc.Store(id='cache'),
                     dcc.Location(id='url'),
                     html.Div(id='page-content')])


app.layout = serve_layout


@app.callback(Output('page-content', 'children'),
              [Input('url', 'pathname')])
def display_page(pathname):
    if pathname == '/':
        return mwe_test_component.app()


@app.callback([Output("log", "children"), Output("cache", "data")],
              Input("button", "n_clicks"), prevent_initial_call=True)
def click(n_clicks):
    data_set = {"key1": [1, 2, 3], "key2": [4, 5, 6]}
    json_dump = json.dumps(data_set)
    return f"clicked ({n_clicks})", json_dump


if __name__ == '__main__':
    app.run_server(port=7777, dev_tools_hot_reload=True, debug=True)

mwe_test_component:

import dash_html_components as html


def app():
    return html.Div([
        html.Button("button", id="button", n_clicks=0),
        html.Div("Initial value", id="log")])

The dash-extensions library builds on top of Dash, so the behavior should be the same (assuming there are no bugs in dash-extensions). Hence if you see the bug in Dash itself, please report it to the Dash maintainers :slight_smile:

EDIT: Now that I think about it, it could actually be fixed in dash-extensions. But since it seems like a regression in Dash, which is likely to be fixed, I would rather introduce patching in dash-extensions…

Makes sense, I’m reporting it there then.

Hello ! Has there been any update on this?

Not from my side. Maybe @jokin has an update?

Hi! Sorry no update from my side, I keep using workarounds as the flag still has no effect on various callbacks. I will update the versions of dash I use and report.

Hi everyone!
Has there been any progress on this topic lately?