-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ab test rammeverk #440
base: master
Are you sure you want to change the base?
Ab test rammeverk #440
Conversation
const { Provider } = ExperimentsContext; | ||
const useVariant = experiments.find( | ||
experiment => | ||
experiment.id.localeCompare(experimentId, undefined, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvorfor bruke localeCompare? Og hvorfor ikke bruke isValidExperiment funksjonen fra under?
experiments: ExperimentShape[]; | ||
} | ||
|
||
export const fetchVariantIndex = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kan ikke se at denne blir brukt noe sted? Viss den blir det bør den i en util funksjon
experimentId, | ||
onVariantMount, | ||
}}> | ||
{children} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bedre API og sende inn en array med varianter i stedet for renderprops? Trenger man ikke eksponere til ndla-frontend, og man trenger ikke context for man kan bare sende props direkte inn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Takk for gode tilbakemeldinger. Vi ser på saken 👍
No description provided.