Skip to content

Commit

Permalink
linkinbio: computed var cannot accept arguments
Browse files Browse the repository at this point in the history
also, this computed var was intended to be a non-cached computed var
  • Loading branch information
masenf committed Feb 25, 2025
1 parent 66bd8ce commit 50e8a4a
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,
feature_flag_key: str = "toggle-bio",
) -> bool:
@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 @@ -57,6 +57,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 50e8a4a

Please sign in to comment.