Skip to content

Commit

Permalink
Interactivity API: new store() API docs (#56764)
Browse files Browse the repository at this point in the history
* New store() API docs

* Update interactivity API diagram

* Small fixes to the docs

* Update interactivity docs assets

* Update `data-wp-interactive` in getting started

* Add docs for private stores

* Slightly improve `wp-class` example

* Clarify `store()` returns the same references

* Mention how to read props from other ns

---------

Co-authored-by: Mario Santos <[email protected]>
Co-authored-by: David Arenas <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2023
1 parent efb7099 commit 62b933e
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 203 deletions.
2 changes: 1 addition & 1 deletion packages/interactivity/docs/1-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To "activate" the Interactivity API in a DOM element (and its children) we add t


```html
<div data-wp-interactive>
<div data-wp-interactive='{ "namespace": "myPlugin" }'>
<!-- Interactivity API zone -->
</div>
```
Loading

1 comment on commit 62b933e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 62b933e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7104058585
📝 Reported issues:

Please sign in to comment.