How to rerun a fragment alone?

How can I trigger a rerun() for a fragment alone?

Should I simply return from the (fragment)function with a return value suggesting a re-run and make the driver code keep calling the fragment again and again? Will that work? (or) Is there a more elegant official solution?

st.rerun has a scope parameter. If you call st.rerun(scope="fragment") in a fragment, it will only rerun the fragment.

1 Like

Argh! I was totally misled by ChatGPT.. Thanks!

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