You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 from localStorage during initialize(), and I can's see a good reason why the identify() function doesn't also make use of this cache. I'd be happy if identify() used the last-known values from localStorage, whilst in the background loading the fresh values from the network, populating localStorage, and perhaps firing the change 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:
Thanks Eli. One thought which occurred to me is that I might want to bootstrap the initialize with a JSON object, but for identify to cache in localStorage. So it might be good to separate these two flags, rather than assume that the user wants localStorage backing for both.
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: