I have an app that makes heavy use of clientside callbacks. In fact, the majority of callbacks are clientside.
Still, each clientside callback is defined in Python, with their relevant Input, Output, and State.
I’m wondering is it possible to define clientside callbacks entirely in JS, meaning not just the JS function but also inputs, outputs and state?
Reason: purely DX. Current options are:
- callback definition in Python, with the function in a JS file
- a bit annoying, e.g. when troubleshooting
- JS in a Python string
- IDE support for code in strings is limited
Ideally: everything related to a clientside callback should be in one place in a JS file.