We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d3c05 commit 96185fbCopy full SHA for 96185fb
packages/sdk/ai/src/LDAIClientImpl.ts
@@ -41,6 +41,8 @@ export class LDAIClientImpl implements LDAIClient {
41
variables?: Record<string, unknown>,
42
): Promise<LDAIConfig> {
43
const value: VariationContent = await this._ldClient.variation(key, context, defaultValue);
44
+ // We are going to modify the contents before returning them, so we make a copy.
45
+ // This isn't a deep copy and the application developer should not modify the returned content.
46
const config: LDGenerationConfig = { ...value };
47
const allVariables = { ldctx: context, ...variables };
48
0 commit comments