-
Notifications
You must be signed in to change notification settings - Fork 37
[BUG] setForcedDecision does not work after update to version 3.0.1 #256
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
Comments
Let me loop back to this. I'm working to finalise #255 |
We've released v3.1.0 of the React SDK. When you have a moment, please let me know if setForcedDecision works as you/we expect. I'll create a test scenario as you've described to test. |
Hey there! Was going to write up an issue about this same topic. Currently on We are currently writing a light wrapper around the Here is a simplified version of what our wrapper looks like:
I'd assume that since we called |
I did a quick code dive and see that in the JS SDK, I've created an internal ticket (FSSDK-10120) to trace. |
Hey there @mikechu-optimizely! Just wanted to follow up on some findings I did today. While playing around with the APIs, one interesting thing I found was that calling Example below shows us calling both
The results of the console log are as followed:
As we can see, calling Any guidance or insight to successfully getting the |
Thanks for code diving with me. I see in the underlying JS SDK that the OptimizelyUserContext.decide snags a copy of the current userContext with the forced decisions (if present) on its way into the client's decide() method. So yeah, that's our difference. 🤔: React SDK's use of the client |
forced decisions is very important for automated tests and other quality assurance processes to make sure feature is working in production manually before starting gradual rollout. its been more than 5 months since issue was filed and last communication on the matter. Its frustrating and disappointing as a paying corporate customer to see important feature being broken for months without end in sight @mikechu-optimizely do you mind to prioritise the fix for this once working feature? |
I've pulled this Issue into today's stand-up. I'll update here by COB. |
We've pulled this issue & work ticket into this sprint. |
A new release v3.2.1 is out with the fix. @iamstarkov, @byron-ino let us know if an upgrade fix the issue for you. Thanks for your patience. |
I was also following this bug ^.^, I just tested my local project with the new version and works as expected 👍🏼 I hope others have the same outcome. Thanks for the quick fix. |
@junaed-optimizely @mikechu-optimizely thank you for a quick fix, we can confirm it works now |
Thanks for the confirmation updates. 🙏 |
The issue has been resolved and confirmed by the clients. Closing this issue now. Thanks everyone! |
Is there an existing issue for this?
SDK Version
@optimizely/react-sdk: 3.0.1
Current Behavior
After calling
setForcedDecision
,useDecision(name, { autoUpdate: true })
is updated.Expected Behavior
useDecision
returns the latest dataSteps To Reproduce
React Framework
No response
Browsers impacted
No response
Link
No response
Logs
No response
Severity
Blocking development
Workaround/Solution
No response
Recent Change
No response
Conflicts
No response
The text was updated successfully, but these errors were encountered: