1d45dacc3e
* move thinks and create consistent promise rejection * Remove notifyErrors * Combine error handling * Ensure thunk usage handles errors * Use promise in coupon form * onsubmit type * receiveCartContents during checkout * Update mocks * receiveCartContents mocks/types * Fix receiveCartContents tests * Move thunks back to actions, add todo for follow up * Sort actions alphabetically * Null check is unnecessary |
||
---|---|---|
.. | ||
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.