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
Identify as a user, optionally with traits e.g. {foo:"bar",numericProp:1,boolProp:true}. This will create a user for your environment in the dashboard if they don't exist, it will also trigger a call to getFlags(), resolves a promise when the flags are updated.
The documentation for function logout says:
Stop identifying as a user, this will trigger a call to getFlags()
As you can see, the documentation explicitly states that these functions will trigger a call to getFlags() and doesn't mention any exceptional case - but there is one exceptional case: if a listener has been set up by means of flagsmith.startListening, then neither identify or logout will call getFlags.
It looks like this exceptional case should be mentioned in the docs, or removed from the code, or addressed somehow.
The documentation for function
identify
says:The documentation for function
logout
says:As you can see, the documentation explicitly states that these functions will trigger a call to
getFlags()
and doesn't mention any exceptional case - but there is one exceptional case: if a listener has been set up by means offlagsmith.startListening
, then neitheridentify
orlogout
will callgetFlags
.It looks like this exceptional case should be mentioned in the docs, or removed from the code, or addressed somehow.
This PR #104 proposes a fix.
The text was updated successfully, but these errors were encountered: