ConfigurationChanged event on flags with targeting using $flagd.timestamp #1363
victorlevasseur
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
(It's me, again !)
I'm currently experimenting with the web flagd provider in a frontend.
Using events, it seems I can adjust my UI live when the flags configuration changes. It assumes that a flag can only change when its configuration changes or the context changes, which is fine in almost all the cases but not in a specific one : when the flag targeting is based on
$flagd.timestamp
.Here is an example :
No events are sent to the web sdk when the condition based on the timestamp changes. Even if I call the client again, it still gives me the old value. The only way to refresh the value is to clear the cache which seems pretty inconvenient.
Is it something to improve in flagd in the future?
Beta Was this translation helpful? Give feedback.
All reactions