react-sdk icon indicating copy to clipboard operation
react-sdk copied to clipboard

React SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy)

Results 28 react-sdk issues
Sort by recently updated
recently updated
newest added

[This](https://github.com/optimizely/react-sdk/blob/da4627c1e45f2a1f92861468f06828a8990e288d/src/hooks.ts#L467) `useEffect` will mount and execute on every single render. The root cause is that `getCurrentDecision` in `useDecision` is not wrapped in `useCallback` like it is in the other hooks....

acknowledged

This would be a nice quality of life improvement to have as we often have experiment code that looks like this: ```tsx ``` It would be nice to be able...

acknowledged
needs-release

This pull request addresses the issue that is laid out by my colleague @dtothefp here: optimizely#120 It will merge the existing user attributes with the current user's attributes to prevent...

acknowledged

Update feature decisions when forced variations update

acknowledged

## Description We'd like to be able to render `useExperiment()` and the other hooks conditionally. This PR will add the ability for people to run `useExperiment('experiment_key', { disabled: true })`...

acknowledged

adding useCallback here fixed a few things: 1. Bug: if you used multiple useDecision hooks with { autoUpdate: true }, the second one would not autoUpdate (you had to fully...

acknowledged

There is a timing bug in all three hooks' (`useFeature`, `useExperiment`, and `useDecision`) that leads to `autoUpdate: true` render triggers getting lost. The code in #125 introduced a window of...

acknowledged

Hi. I'm getting this `Can't perform a React state update on an unmounted component` Warning when I'm using optimizely. In a simple example, I created a hook like this: ```...

acknowledged

The current `useDecision` hook can only work with one feature flag and return only one OptimizelyDecision. In situation where more than one decision is needed, a useDecisions hook can be...

enhancement
acknowledged

We have a base set of attributes that are passed to our OptimizelyProvider upon initialization. A common use case is in a hook to pass the `overrideAttributes`. Generally we would...

acknowledged