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
The getCurrentContext function may be useful to users (instead of accessing explicitly window.__LD__) to access the user context.
A use case I've in mind is when you want to enrich the data you passed previously to identify() by doing another call to it. In this case, it's handy to get the current user context, instead of gathering again all the needed data.
I think it would be nice to export it from the -sdkmodule index, so that's clear that the function is intended to be used from the outside, as identify, variation, etc.
The text was updated successfully, but these errors were encountered:
The
getCurrentContext
function may be useful to users (instead of accessing explicitlywindow.__LD__
) to access the user context.A use case I've in mind is when you want to enrich the data you passed previously to
identify()
by doing another call to it. In this case, it's handy to get the current user context, instead of gathering again all the needed data.Right now, you can import it by doing
I think it would be nice to export it from the
-sdk
module index, so that's clear that the function is intended to be used from the outside, asidentify
,variation
, etc.The text was updated successfully, but these errors were encountered: