You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a weird behavior of query_params with the version 0.89
The query params keep resetting to the previous value, the user has to click twice to update the params. Verified that this works properly with versions 0.88 or lower
It turns out that this is expected (and admittedly unintuitive) behavior that was caused by a change to widget identity semantics for keyed widgets that we made in 0.89. There's a page in our documentation that was recently added to describe the semantics.
Additionally, there's some helpful discussion in this comment as well as this issue that hopefully helps to explain why this behavior occurs as well as provides a code snippet that's useful in restructuring your code to avoid this.
Summary
I noticed a weird behavior of query_params with the version 0.89
The query params keep resetting to the previous value, the user has to click twice to update the params. Verified that this works properly with versions 0.88 or lower
Steps to reproduce
Clone this example repo and run app.py
https://github.com/akshanshkmr/streamlit-multipage
My MultiPage Framework:
(Please provide a code snippet! This will help expedite us finding and solving the problem.)
If applicable, please provide the steps we should take to reproduce the bug:
Expected behavior:
Query params should be updated with 1 click on the radio button
Actual behavior:
User needs to click twice on each navigation option to update the query params
Is this a regression?
That is, did this use to work the way you expected in the past?
yes
Debug info
Additional information
behaviour with version 0.89
behaviour with version 0.88
The text was updated successfully, but these errors were encountered: