Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/sdk/client-side-sdks/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ dvcClient.subscribe(
"variableUpdated:*",
(key: string, variable: DVCVariable) => {
// key is the variable that has been updated
// The new value can be accessed from the variable object passed in: variable.value
console.log(`New variable value for variable ${key}: ${variable.value}`);
// The new value can be accessed from the variable object passed in: variable?.value
// The variable argument will be undefined if the variable is no longer being served a value
console.log(`New variable value for variable ${key}: ${variable?.value}`);
}
);
```
Expand Down