Skip to content

Commit 0088ff4

Browse files
committed
Tweak wording
1 parent 0908a4e commit 0088ff4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### New features
1111

12-
* The `Session` class gains a `current_output_id` attribute. If an output renderer is currently executing, this attribute will contain the relevant ID. (#1978)
1312
* The `.output_*()` methods of the `ClientData` class (e.g., `session.clientdata.output_height()`) can now be called without an `id` inside a output renderer. (#1978)
13+
* The `Session` class gains a `.current_output_id()` method. It returns the ID of the currently executing output renderer (if any). (#1978)
1414

1515
### Improvements
1616

shiny/session/_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,8 @@ def _read_output(self, id: str | None, key: str) -> str | None:
16991699

17001700
if id is None:
17011701
raise ValueError(
1702-
"session.clientdata.output_*() must be either be supplied with an id "
1703-
"or called from within an output renderer."
1702+
"session.clientdata.output_*() requires an id when not called within "
1703+
"an output renderer."
17041704
)
17051705

17061706
input_id = ResolvedId(f".clientdata_output_{id}_{key}")

0 commit comments

Comments
 (0)