woocommerce/plugins/woocommerce-blocks/docs/block-client-apis
Saad Tarhi 25cb047483 Remove `useStoreSnackbarNotices` and interact directly with data store instead (https://github.com/woocommerce/woocommerce-blocks/pull/6411)
* Use wp store directly instead of React Context

We are using now actions directly from wp store in 'useStoreCartCoupons'
hook to apply and remove coupon.

* Remove unused "useStoreSnackbarNotices" related
files

* Add NoticeContext TS definition

* Remove the Provider references and refactor code

* Fix snackbar notice creation bug

* Fix "clear out snackbar coupon notice" bug

* Update "notices" API documentation

Remove snackbar hooks mentions since it's not used anymore
2022-05-25 22:00:47 +01:00
..
checkout Fix broken link 2022-05-25 08:12:54 +01:00
README.md Include issue submission link in the footer of all documention (.md files) (https://github.com/woocommerce/woocommerce-blocks/pull/5655) 2022-02-02 14:27:46 +00:00
notices.md Remove `useStoreSnackbarNotices` and interact directly with data store instead (https://github.com/woocommerce/woocommerce-blocks/pull/6411) 2022-05-25 22:00:47 +01:00

README.md

Block Client APIs

This folder contains documentation for API interfaces for Blocks. In most cases, these docs describe APIs and interfaces that are internal only, and thus are provided to assist with developing the blocks in this repository. Documentation will tend to focus on high level overviews.

For more details about extensibility points in the blocks, you can reference the extensibility docs.

Checkout Block

Document Description
Checkout API interface This doc goes into some detail about some of the API specifics for the checkout block architecture.
Checkout Flow and Events All about the checkout flow in the checkout block and the various emitted events that can be subscribed to.
Notices Explains how the notices system works and which methods are available to add an remove them.

We're hiring! Come work with us!

🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.