Skip to content

Commit

Permalink
fix: Removed autoupdate due to constant updates (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
rijuma authored Jul 29, 2024
1 parent 0ff4d4f commit 627f589
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/experiments/experimentHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export function usePromptExperimentDecision() {

const [decision] = useDecision(
OPTIMIZELY_PROMPT_EXPERIMENT_KEY,
{ autoUpdate: true }, // This should make the decision reactive to changes on the experiment dashboard.
{ overrideUserId: userId.toString() }, // This override is just to make sure the userId is up to date.
);

Expand Down

0 comments on commit 627f589

Please sign in to comment.