-
Notifications
You must be signed in to change notification settings - Fork 66
Double reload with local file and autoUpdate=true #138
Comments
Thanks for reporting this. We'll see if we can reproduce that behavior. There are two other pieces of information that might be helpful:
Also, do I understand correctly that it starts out just loading the file at startup time, and doesn't do any unexpected reloads, until you do modify the file (or at least touch it in a way that modifies its timestamp), and then you get a bunch of reloads after that? And do the reloads always happen very close to each other? |
Yeah, this wasn't hard to reproduce - I'm surprised we didn't see it earlier. It seems there's a known issue where Node's |
In case it still helps:
|
Thanks. The fix is indeed pretty easy for Linux and Mac, but I'm still seeing some weird behavior on Windows (which we just started testing with recently), so I'll put out a patch as soon as I've figured that out. |
We've released version 5.7.2 with a fix for this. |
When reading FeatureFlags form a local file and using
autoUpdate
, it seems to reload it multiple times.After saving the file once (with no actual changes on the content of the file), I got
Some times I even get 3 or 4 reloads.
Relevant code:
Versions:
The text was updated successfully, but these errors were encountered: