This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Description
Is this a support request?
no
Describe the bug
An "all flags" listener is being passed a string representation of a JSON array, not the array itself (which is what the TS types specify it receives).
const handler = (allFlags) => {
console.log({ allFlags })
}
client.registerAllFlagsListener(handlerId, handler);
// assuming a flag called `'feature-flag'`, what's logged is:
// {"allFlags": "[\"feature-flag\"]"}
To reproduce
see above
Expected behavior
Argument values match their TS types
Logs
n/a
SDK version
4.0.3
Language version, developer tools
React native, I'm not sure what JS version the device is running
OS/platform
Android 11 simulator, Pixel 2 emulator
Additional context
Add any other context about the problem here.