green-fall-98011
05/30/2025, 1:29 PMdecryptPayload
data.features = JSON.parse(
await decrypt(data.encryptedFeatures, decryptionKey, subtle)
);
Is async,future-teacher-7046
growthbookdata
event, which will fire every time the feature definitions or attributes changegreen-fall-98011
05/30/2025, 2:33 PM<html>
<head>
<script
data-api-host="<http://localhost:3300>"
data-client-key="sdk-9m8LOKhsUcWrizJQ"
data-decryption-key="u+xDcOpJfNYiBMFdHkgdSw=="
src="<https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.js>"
></script>
<script>
const r = window._growthbook.getFeatureValue("simple", false);
console.log("!",r,"!")
</script>
</head>
<body></body>
</html>
With debugger I can see it tries to decrypt twice. First w/o key, then flag is evaluated (console.log) and then with a decryption key (but lag is not reevaluated)
It works for other SDK thofuture-teacher-7046