Previously, when using the experimental version, the specified query parameters were saved and could be used on other pages. Now, after setting a query parameter on one page, it is reset when moving to another.
Tell me, is this a feature of the implementation or is it a bug? Thx.
Thanks for flagging this issue! Is your app using st.rerun? Query parameters are expected to persist across pages, but there is currently a confirmed bug with st.query_params when used in conjunction with st.rerun (GitHub Issue here)
Thanks so much for sharing that example! I’ve investigated this further and this is actually intended behavior to simulate the same behavior of regular webpages.
Here are a few related GitHub Issues that explain the decision to make this change in more detail: #6725, #5505, #7982
Thanks for providing details of the changes to this approach. It would probably be great to show this information in the documentation so that it is explicit.
I’ll look into making the note more visible. It’s currently the last sentence before the “Repeated keys” section on the st.query_params page. Since it’s just one line, it’s definitely easy to miss. Thanks for highlighting.