Closed
Description
The documentation of localhost mode here: https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK#localhost-mode
says:
You can then change the treatment as necessary for your testing. To update a treatment or a config, or add or remove feature flags from the mock cache, update the features object you've provided.
This implies that the browser SDK is retaining the reference to the passed features object however it appears that features actually gets copied when it passes through a deep copy merge implementation used by settingsValidation
here: https://github.com/splitio/javascript-commons/blob/e5eca00b8df9bbda1a1fb7925a7e1663f8ac0552/src/utils/settingsValidation/index.ts#L111
Metadata
Metadata
Assignees
Labels
No labels