Interactivity API questions #57068
Replies: 3 comments 4 replies
-
Great questions! 🙂
Yes. The Interactivity API uses signals internally for
The directives are server-side rendered, so the user will see the correct values for the page. Without JavaScript, those values won't change after the render, of course.
Sure. There are no restrictions on what you can do. Unlike AMP, there is no validator or anything like that.
Any block can read or change the |
Beta Was this translation helpful? Give feedback.
-
Thanks @luisherranz |
Beta Was this translation helpful? Give feedback.
-
The case of communication between blocks. I'm creating an acf-filter block that provides an acf field value selector in the frontend. It should re-render both selector and related core/query every time the selector changes. Currently I'm doing interactivity via Ajax, passing the render of the core/query after applying the "query_loop_block_query_vars" hook. I would like to know if I can do this with the Interactive API and how (). Another question. Since I'm using no core blocks inside core/query, I can't use client-side navigation. Is there a way to enable it despite no core blocks? |
Beta Was this translation helpful? Give feedback.
-
On December 14th I ran an intro to the Interactivity API online workshop. During this session, I walked folks through the Interactive Block scaffolded from the Getting Started Guide, as well as ran through some of the directives in the API docs.
Some questions arose that I was not able to answer, and it would be great to be able to feed back these answers to workshop attendees:
For the last two questions, their was also a follow up:
I'm supposing both our questions can be solved by registering events in the init lifecycle. Just was checking if there was some sort of specific implementation on the API for those cases.
Beta Was this translation helpful? Give feedback.
All reactions