rafatjah commited on
Commit
63f793a
·
1 Parent(s): 63eae55

Fix refresh data

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -14,7 +14,8 @@ with st.container():
14
  st.link_button("Link to this page with query params", "page1?key=val")
15
 
16
 
17
- with st.container():
18
- if st.button("from dict"):
19
- st.query_params.from_dict({"key123": "val123"})
20
 
 
 
 
14
  st.link_button("Link to this page with query params", "page1?key=val")
15
 
16
 
17
+ def from_dict():
18
+ st.query_params.from_dict({"key123": "val123"})
 
19
 
20
+ with st.container():
21
+ st.button("from dict", on_click=from_dict)