Skip to content

Commit e748673

Browse files
Add issue
1 parent 9fb7b4f commit e748673

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

issues/gh-14249/app.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import time
2+
3+
import streamlit as st
4+
5+
6+
@st.cache_data
7+
def foo():
8+
time.sleep(2)
9+
10+
11+
section = st.segmented_control("Section", ["S1", "S2"])
12+
13+
if section == "S1":
14+
st.markdown("- S1.1")
15+
st.markdown("- S1.2")
16+
elif section == "S2":
17+
(tab,) = st.tabs(["S2.Tab"])
18+
foo()
19+
tab.markdown("S2 Lorem")

0 commit comments

Comments
 (0)