Skip to content

Commit

Permalink
linkinbio: computed var should have cache=False
Browse files Browse the repository at this point in the history
update title for NBA app
  • Loading branch information
masenf committed Feb 25, 2025
1 parent 7d1e87f commit 1ea2f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions linkinbio/linkinbio/linkinbio.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ def build_ld_context(
)
self.ld_context_set = True

@rx.var
def get_feature_flag_bool(
self,
) -> bool:
feature_flag_key = "toggle-bio"
@rx.var(cache=False)
def get_feature_flag_bool(self) -> bool:
global COUNTER
if not self.ld_context_set:
return False

feature_flag_key = "toggle-bio"
flag_value: bool = LD_CLIENT.variation(
key=feature_flag_key,
context=LD_CONTEXT,
Expand Down
2 changes: 1 addition & 1 deletion nba/nba/nba.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ def index() -> rx.Component:
)
app.add_page(
index,
title="Sales App",
title="NBA Data App",
description="Generate personalized sales emails.",
)

0 comments on commit 1ea2f4e

Please sign in to comment.