Skip to content

Commit

Permalink
chore: Added extra comments on the useDecision() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rijuma committed Jul 18, 2024
1 parent 0286b05 commit 9cc2269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/experiments/experimentHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export function usePromptExperimentDecision() {

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

return [decision];
Expand Down

0 comments on commit 9cc2269

Please sign in to comment.