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: Interactivity API - document getContext() takes an optional namespace argument #63366

Closed
juanmaguitar opened this issue Jul 10, 2024 · 0 comments · Fixed by #63411
Closed
Labels
[Feature] Interactivity API API to add frontend interactivity to blocks. [Type] Developer Documentation Documentation for developers

Comments

@juanmaguitar
Copy link
Contributor

juanmaguitar commented Jul 10, 2024

getContext() takes an optional namespace argument (link)

So for example, in any action, we can do:

const regionContext = getContext('region')

This should be added here (is not properly documented)→ https://developer.wordpress.org/block-editor/reference-guides/interactivity-api/api-reference/#store-client-methods

Reported via Slack by @michalczaplinski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Interactivity API API to add frontend interactivity to blocks. [Type] Developer Documentation Documentation for developers
1 participant