-
Notifications
You must be signed in to change notification settings - Fork 66
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
Could identify()
also read from localStorage
?
#71
Comments
Thanks! That looks reasonable at first glance, and we're going to look into it further. |
Thanks Eli. One thought which occurred to me is that I might want to bootstrap the |
don't do exact match on JSON content type
|
@threehams We already have logic that deals with the possibility of |
Hi there,
Firstly, thanks for this great service. It's working fantastically well for us.
We have an application which involves a fair bit of user state changing - logging in and out, setting different properties, etc. For each of these changes, we want to
identify(user)
to get the appropriate feature flags. I'm already bootstrapping fromlocalStorage
duringinitialize()
, and I can's see a good reason why theidentify()
function doesn't also make use of this cache. I'd be happy ifidentify()
used the last-known values fromlocalStorage
, whilst in the background loading the fresh values from the network, populatinglocalStorage
, and perhaps firing thechange
event if there's an update.Could this work? I may well have missed something really obvious, so apologies!
The text was updated successfully, but these errors were encountered: