Skip to content

Pattern-matching callbacks not triggered, producing TypeErrors 'unexpected keyword argument' #534

@notgonnamakeit

Description

@notgonnamakeit

Running a Dash app that uses pattern-matching callbacks by itself works fine but as soon as DjangoDash is being imported, the following error shows up even if the app is run standalone outside of Django:

TypeError: callback_test() got an unexpected keyword argument 'background_callback_manager'

I can work around the issue by adding all keyword arguments it's complaining about and run the Dash app on its own with working callbacks but as soon as I run it within Django, the callbacks won't work:

def callback_test(n_clicks, background_callback_manager=None, callback_context=None, app=None, app_on_error=None, app_use_async=None):

dash==3.2.0 dash-bootstrap-components==2.0.3 dash-core-components==2.0.0 dash-extensions==2.0.4 dash-html-components==2.0.0 dash-table==5.0.0 dash-tvlwc==0.1.1 django-plotly-dash==2.5.0

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