You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One option: In FilterOptions container if It will post search data to a handler, and the handler did the search, but there is no way to pass that products data into FilteredProducts containers. because refresh those containers is a second request
We could store those products somewhere globally like in a database. then when to clear those data is problematic
Another Option: postEvent("product_searched", paramObject), then refresh containers will pass the paramsObject to the FilteredProducts container, In the containers, It do the search logic and render products.
The text was updated successfully, but these errors were encountered:
After some thoughts, the paramObject needs to be pass into containers as url of the page, because we want to change the url of the search even if we only refresh one container of the whole page. that PJAX? https://github.com/defunkt/jquery-pjax
Change the URL using JS history to include the search query, and then post the event? When the containers are reloaded, the query will be included, and then the results container will have access to the query.
For example
postEvent("product_searched", paramObject)
, then refresh containers will pass the paramsObject to the FilteredProducts container, In the containers, It do the search logic and render products.The text was updated successfully, but these errors were encountered: