Skip to content

fix: this.identity reverse compatibility #302

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kyle-ssg
Copy link
Member

#240 aimed to introduce a new api for setting client context such as identity/traits whilst being backwards compatible with the current API. This however did introduce a breaking change where flagsmith.identity does not reflect the current context.

Until we make the leap to documenting contexts / suggesting this as the approach to using the SDK, this PR re-adds this for backwards compatibility.

@kyle-ssg kyle-ssg requested review from tiagoapolo and khvn26 March 28, 2025 11:57
@kyle-ssg kyle-ssg linked an issue Mar 28, 2025 that may be closed by this pull request
Copy link
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kyle-ssg Just one comment to make sure it's on your radar. Otherwise looks good to me after fixing conflicts

@Zaimwa9
Copy link
Contributor

Zaimwa9 commented May 1, 2025

@kyle-ssg rebased and added identity in getstate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identity is empty after executing identify
3 participants