Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Fix typos in interactivity API reference #60870

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading