-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
What problem does this address?
Now that we have the Interactivity API in Core, it's time to start experimenting with enhanced user experiences. One of these would be the ability to refresh the content of a Query block without refreshing the page while the user is typing a search.
What is your proposed solution?
I believe the simplest way to start with the Instant Search would be to convert the search into an instant search when the Search block is inside a Query block that has the Forge Page Reload
option disabled.
When the Force Page Reload
option is disabled, the enhancedPagination
attribute is true
and is passed via block context. Therefore, the Search block can subscribe to the enhancedPagination
context. If it is true
, it can add the necessary directives using the HTML_Tag_Processor
and enqueue de view
file.