Skip to content
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

fix: Loaded storage does not overwrite changes made while loading #28

Merged
merged 1 commit into from Oct 27, 2022

Conversation

mmmoussa
Copy link
Contributor

This PR's changes are only relevant to the RN SDK.

Change

Before: all values set while stored data was being loaded would get overwritten once the data was done loading
After: values that have been set before loading was completed are preserved

Context

I ran into this case while changing opt-in status immediately after constructing a PostHog instance

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.

None yet

2 participants