Skip to content

Commit 2a3609b

Browse files
committed
combine state and context sections
1 parent 8684e11 commit 2a3609b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

snaps/features/custom-ui/interactive-ui.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,13 @@ The following is an example flow:
5858
5. Custom logic sends the funds.
5959
6. `snap_updateInterface` is called again, replacing the whole UI with a success message.
6060

61-
## Get an interactive interface's state
61+
## Get an interactive interface's state and context
6262

63-
At any point you can retrieve an interactive interface's state.
64-
To do this, call the [`snap_getInterfaceState`](../../reference/snaps-api.md#snap_getinterfacestate)
65-
method with the ID of the interface.
66-
67-
### Get an interactive interface's context
68-
69-
At any point you can retrieve an interactive interface's context.
70-
To do this, call the [`snap_getInterfaceContext`](../../reference/snaps-api.md#snap_getinterfacecontext)
71-
method with the ID of the interface.
63+
At any point, you can retrieve an interactive interface's state and context.
64+
To retrieve its state, call the [`snap_getInterfaceState`](../../reference/snaps-api.md#snap_getinterfacestate)
65+
method with the interface ID.
66+
To retrieve its context, call [`snap_getInterfaceContext`](../../reference/snaps-api.md#snap_getinterfacecontext)
67+
with the interface ID.
7268

7369
## Example
7470

0 commit comments

Comments
 (0)