Skip to content

Commit 1ea2f4e

Browse files
committed
linkinbio: computed var should have cache=False
update title for NBA app
1 parent 7d1e87f commit 1ea2f4e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

linkinbio/linkinbio/linkinbio.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ def build_ld_context(
4444
)
4545
self.ld_context_set = True
4646

47-
@rx.var
48-
def get_feature_flag_bool(
49-
self,
50-
) -> bool:
51-
feature_flag_key = "toggle-bio"
47+
@rx.var(cache=False)
48+
def get_feature_flag_bool(self) -> bool:
5249
global COUNTER
5350
if not self.ld_context_set:
5451
return False
5552

53+
feature_flag_key = "toggle-bio"
5654
flag_value: bool = LD_CLIENT.variation(
5755
key=feature_flag_key,
5856
context=LD_CONTEXT,

nba/nba/nba.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ def index() -> rx.Component:
5555
)
5656
app.add_page(
5757
index,
58-
title="Sales App",
58+
title="NBA Data App",
5959
description="Generate personalized sales emails.",
6060
)

0 commit comments

Comments
 (0)