From 8deb8f92a30973c47a3336114893b477f008ffa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Wrede?= Date: Fri, 19 Apr 2024 07:56:23 +0200 Subject: [PATCH] Docs: Fix typos (#60870) --- packages/interactivity/docs/api-reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/interactivity/docs/api-reference.md b/packages/interactivity/docs/api-reference.md index 2fc33b109c955f..dbac92f21f93ee 100644 --- a/packages/interactivity/docs/api-reference.md +++ b/packages/interactivity/docs/api-reference.md @@ -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 @@ -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