Client warning when running experimental_rerun within callback

Hey There

I’m getting a warning Calling st.experimental_rerun() within a callback is a no-op.
shown to the user when running st.experimental_rerun within a callback.

Is it possible to remove the warning from the frontend ?

Thanks !
Roy

The warning suggests that removing the call to st.experimental_rerun() from the callback would probably get rid of the warning without otherwise changing the behavior of your application.

2 Likes

I am facing the same issue as well. What did you do to resolve the warning?

The app always reruns at the end of executing a callback, so there should be no need to include st.experimental_rerun within a callback. If you are trying to terminate a callback somewhere in the middle as part of some conditional, then you can include a return statement there instead to end the callback and proceed with the already scheduled rerun.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.