From 690132bf664c0cd99edd4c7e92617d5763d03442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Wrede?= Date: Thu, 18 Apr 2024 16:48:41 +0200 Subject: [PATCH] Docs: Fix typos --- 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