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
It results with a desynchronisation between ember-feature-controls & ember-feature-flags as the value are not correctly restored onto ember-feature-flagsfeatures service.
The text was updated successfully, but these errors were encountered:
romgere
changed the title
ember-local-storage config is not correctly handle when not default
[JS-951] ember-local-storage config is not correctly handle when not default
Apr 9, 2021
Features values are not correctly restored by instance-initializer when
ember-local-storage
is used withnamespace
orkeyDelimiter
options.The reason is :
feature-controls component uses
storageFor
fromember-local-storage
to write values in locale Store (https://github.com/peopledoc/ember-feature-controls/blob/master/addon/components/feature-controls.js#L6).storageFor
take into account theember-local-storage
config to write the key at the right place in locale storage (with correct namespace and/or delimiter).In other hand, the instance initializer uses
getStorage
& get value with thestorage:feature-controls
key wich does not take into account theember-local-storage
config (https://github.com/peopledoc/ember-feature-controls/blob/master/addon/instance-initializers/load-feature-controls.js#L9)It results with a desynchronisation between
ember-feature-controls
&ember-feature-flags
as the value are not correctly restored ontoember-feature-flags
features
service.The text was updated successfully, but these errors were encountered: