TL;DR
- Streamlit make a full reload of your app at each interaction
- Fragments is a new feature that allows your app to be modular and avoid multiple runs
In my previous post i talked about how Streamlit can be organized for complex functionalities. A new feature named fragments allows your application to avoid a full reload of the app. It is very useful when you want to create independent blocks or want to cache your API calls.
Next time you create a feature, use the decorator `@st.experimental_fragment` to reload only what is inside the fragment and make your app faster.