Hey @acidic_ph, welcome to the forums
I’ve answered a similar question here using another version of the State hack that the one you found on the earlier posts. There are multiple versions that work for different Streamlit versions given how fast it evolves, so it’s sometimes hard to track the one for you