Skip to content

Commit

Permalink
update getContext arg by adding quote
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Kägy <mail@fabian-kaegy.de>
  • Loading branch information
dhananjaykuber and fabiankaegy authored Jul 11, 2024
1 parent c36f1dc commit cf78569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/interactivity-api/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ Apart from the store function, there are also some methods that allows the devel
Retrieves the context inherited by the element evaluating a function from the store. The returned value depends on the element and the namespace where the function calling `getContext()` exists. It can also take an optional namespace argument to retrieve the context of a specific interactive region.

```js
const context = getContext(namespace);
const context = getContext('namespace');
```
- `namespace` (optional): A string that matches the namespace of an interactive region. If not provided, it retrieves the context of the current interactive region.

Expand Down

0 comments on commit cf78569

Please sign in to comment.