dash icon indicating copy to clipboard operation
dash copied to clipboard

[Long Callback] Support pattern matching for long callbacks side updates (progress/cancel/running)

Open T4rk1n opened this issue 3 years ago • 3 comments

Long callbacks progress, running and cancel dependencies should support pattern matching ids.

T4rk1n avatar Jun 30 '22 20:06 T4rk1n

Was this issue ever resolved? I think that I'm running into it in my current application in trying to assign a pattern-matching component to the cancel parameter.

milind avatar Apr 10 '23 21:04 milind

thank you @T4rk1n - can I ask if there are plans to add pattern matching for progress, running and cancel in the near future?

Ciaran-YouSeq avatar Apr 12 '23 17:04 Ciaran-YouSeq

@Ciaran-YouSeq It's in the backlog... If anyone want to work on this it would be a good introduction to renderer development, I can give some pointers below.

The side update are performed in this function: https://github.com/plotly/dash/blob/093b5596f4836fb999365849b421892d8835c199/dash/dash-renderer/src/actions/callbacks.ts#L322-L336

We have a function to get path from id: https://github.com/plotly/dash/blob/093b5596f4836fb999365849b421892d8835c199/dash/dash-renderer/src/actions/paths.js#L70

The side update will need to be integrated with the getPath function, the returned path in that case may be a array of path or a path itself, then modify the dispatch to be on a loop depending on that result.

T4rk1n avatar Apr 12 '23 17:04 T4rk1n