Skip to content

Commit

Permalink
Docs: Fix typos (#60870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean authored Apr 19, 2024
1 parent cc8fce2 commit 8deb8f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/interactivity/docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ const { state, actions } = store("myPlugin", {
const context = getContext();
// `id` is optional here, so this action can be used in a directive.
state.selected = id || context.id;
}
},
otherAction: () => {
// but it can also be called from other actions.
actions.selectItem(123); // it works and type is correct
Expand Down Expand Up @@ -1120,7 +1120,7 @@ will output:
### wp_interactivity_data_wp_context
`wp_interactivity_data_wp_context` returns a stringified JSON of a context directive.
This function is the recommended way to print the `data-wp-context` attribute in the server side rendedered markup.
This function is the recommended way to print the `data-wp-context` attribute in the server side rendered markup.
```php

Expand Down

0 comments on commit 8deb8f9

Please sign in to comment.