Combining Pattern-Matching Callbacks with regular Callbacks

Hi,
I am trying to create a dynamic layout, with accordions, tables etc, per user request.
I used Pattern-Matching Callbacks to reach my dynamic accordions and it works great.

The issue is that most of my response depend on the accordions, so I have many outputs from one input.
When I try to write one callback with Pattern-Matching Callbacks and regular callbacks it seems to fall.
so for example, when I run the following, it works:
@app.callback( [ Output(component_id='Table', component_property='data') ], [ Input({'type': 'accordion_', 'index': ALL }, 'value') ], prevent_initial_call=True )

and when I run this one, it also works:


@app.callback(
    [ 
     Output({'type': 'accordion_panel', 'index': MATCH}, "children") ,     ],
    [ Input({'type': 'accordion_', 'index': ALL }, 'value') ],     
            prevent_initial_call=True       
)

But when I run the below, it doesn’t work:


@app.callback(
    [ 
    Output({'type': 'accordion_panel', 'index': MATCH}, "children") ,  
              Output(component_id='Table', component_property='data')
                      ],   
    [ Input({'type': 'accordion_', 'index': ALL }, 'value') ],       
           prevent_initial_call=True     
)

I have a feeling that I can’t combine the two types of callbacks together, but I’m not sure…
Really apricate your help.

Hello @MaayanShoshan,

You need to split these two into different callbacks as you cannot mix MATCH and ALL inputs and outputs.

You can however, use ALL as a state within the MATCH process.