Skip to content

Commit

Permalink
Clean up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mofojed committed Mar 14, 2024
1 parent 1eb4e48 commit b214607
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/ui/src/deephaven/ui/_internal/RenderContext.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ def manage(self, liveness_scope: LivenessScope) -> None:
def export_state(self) -> ExportedRenderState:
"""
Export the state of this context. This is used to serialize the state for the client.
Returns:
The exported serializable state of this context.
"""
exported_state: ExportedRenderState = {}

Expand All @@ -410,9 +413,12 @@ def retained_children(children: ChildrenContextDict):

return exported_state

def import_state(self, state: dict[str, Any]):
def import_state(self, state: dict[str, Any]) -> None:
"""
Import the state of this context. This is used to deserialize the state from the client.
Args:
state: The state to import.
"""
self._state.clear()
self._children_context.clear()
Expand Down

0 comments on commit b214607

Please sign in to comment.