We use callbacks in streamlit and are sometimes annoyed by the frequent rerunning of the page (because the page is big and the callbacks numerous, e.g. for single clicks in graphs). We have some callbacks, that do not modify the state of the app. Hence it is not necessary to rerun the app. I would like to do something as follows: run the callback, check if the callback should have any effect, and if not, leave (return from) the callback and signal to streamlit, that there is no need to re-run the app.
After looking in documentation and code, I did not find a solution, but maybe I missed some way.