-
Notifications
You must be signed in to change notification settings - Fork 313
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
Instant Results feature #2481
Instant Results feature #2481
Conversation
* @param {number} props.total Total number of items. | ||
* @return {WPElement} Element. | ||
*/ | ||
export default ({ offset, onNext, onPrevious, perPage, total }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felipeelia On ES7 the total
prop here might not be a number, it might be an object.
* Move availability check to requirements_status * New actions, filters, and checks
import jQuery from 'jquery'; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JakePT Currently we use WP's jQuery version (and the final goal would be to get rid of it entirely). Any reason why we simply don't define this as global instead of importing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felipeelia This is the only way I've been able to get jquery
in the asset dependencies. Do you know the proper way to define jQuery as a global so that it's picked up?
'facets' => $this->get_facets_for_frontend(), | ||
'highlightTag' => 'mark', | ||
'isWooCommerce' => $this->is_woocommerce, | ||
'matchType' => 'all', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't we already have a field for this, @JakePT?
…s into feature/instant-results
Just to add `mergeRules` to cssnano config to have sync.css working
Description of the Change
WIP
Alternate Designs
WIP
Benefits
WIP
Possible Drawbacks
WIP
Verification Process
WIP
Checklist:
Applicable Issues
WIP
Changelog Entry
WIP