(self, component_id: typing.Union[str, dict], props: dict)
| 262 | |
| 263 | @has_context |
| 264 | def set_props(self, component_id: typing.Union[str, dict], props: dict): |
| 265 | ctx_value = _get_context_value() |
| 266 | _id = stringify_id(component_id) |
| 267 | existing = ctx_value.updated_props.get(_id) |
| 268 | if existing is not None: |
| 269 | ctx_value.updated_props[_id] = {**existing, **props} |
| 270 | else: |
| 271 | ctx_value.updated_props[_id] = props |
| 272 | |
| 273 | @property |
| 274 | @has_context |
no test coverage detected