4fd16267be
* Add local state to address-form * Update test with valid postcode and required fields * Push changes refactoring * Avoid loops due to retrying same data * Callbacks to prevent rerenders * Move validation functions * Filter incoming values to only those included as fields to prevent errors * Keep track of country changes to prevent excessive updates of addressFormFields. * Use helpers in test * Fill company * Revert local state in address form * Update address form to remove validation handling for postcode (country clears the field). * Revert "Update test with valid postcode and required fields" This reverts commit 718a6006df24f6e957297ad4d1ef9d6f690793bd. * Clear postcode when country changes if invalid * Revalidate fields when country changes * Comment for pick * Revert unneccessary test change * Revery moving of functions to reduce diff size * Increase push timeout in tests * Revert test changes |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.