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
{{ message }}
This repository was archived by the owner on May 30, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on May 30, 2024. It is now read-only.
I read all the documentation I could find on the SDK, but I've found no mentions on how you subscribe to an update event (or even if there is an updated event at all). I looked into the source and seems that FeatureStoreEventWrapper does indeed emit an update and update:${key} events. Is it something that shouldn't be used?
Sorry about that! That feature was added a few months ago due to a customer request, and we never got around to documenting it for everyone else - thanks for bringing that to our attention. We will update the docs ASAP.
As for whether it should be used: you can use it, but there is currently a limitation you should be aware of. If you get an update:A event, then it means flag A has been edited— specifically flag A itself. The problem is, that's not the only way the flag's value can change. If flag A uses flag B as a prerequisite, or refers to user segment S, then editing B or S could also cause A's value to change, yet you will not see an update:A event. This is not ideal, and we will probably change it soon so that your application logic will not need to worry about these internal details of how the flag is defined.
Activity
eli-darkly commentedon Jun 5, 2018
Sorry about that! That feature was added a few months ago due to a customer request, and we never got around to documenting it for everyone else - thanks for bringing that to our attention. We will update the docs ASAP.
As for whether it should be used: you can use it, but there is currently a limitation you should be aware of. If you get an
update:Aevent, then it means flag A has been edited— specifically flag A itself. The problem is, that's not the only way the flag's value can change. If flag A uses flag B as a prerequisite, or refers to user segment S, then editing B or S could also cause A's value to change, yet you will not see anupdate:Aevent. This is not ideal, and we will probably change it soon so that your application logic will not need to worry about these internal details of how the flag is defined.Merge pull request #94 from launchdarkly/eb/ch12124/client-side-filter
eli-darkly commentedon Oct 23, 2019
We did add documentation for this some time ago, but the limitation described in the previous comment has been fixed in the 5.9.2 release.