-
Notifications
You must be signed in to change notification settings - Fork 36
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
[FSSDK-9654] fix: Default to VUID without user(id) as Provider prop #229
Conversation
I'll re-open later when I've more progress. |
It really is needed so that vuid in JS SDK is ready
I think I'm actually ready for a review of this @raju-opti and @jaeopt. Sorry, this took so long to untangle this new anon paradigm using vuid. |
Developer review completed. |
I have an e2e test config set up and able to demo effect. |
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.
The fix for using vuid for null userId looks good to me.
A couple of clarifications regarding backward compatibility.
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.
Thanks @jaeopt . I've replied to your comments.
@raju-opti I'd love your double sign off too on this PR.
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.
LGTM
const { optimizely, userId, userAttributes, user } = props; | ||
} | ||
|
||
componentDidMount(): void { |
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.
this introduces a bug and breaks SSR:
#234
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.
Internal ticket opened and put into this sprint.
Summary
OptimizelyProvider
is used without theuser?
oruserId?
props, we should retrieve and use the VUID foroptimizely.setUser()
constructor()
of provider into lifecycle methodcomponentDidMount()
getVuid()
Test plan
Issues