-
Notifications
You must be signed in to change notification settings - Fork 21
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
Investigate setup and use of wp data #45
Comments
I need to check with the wc-admin folks if we can use the woocommerce/data package or if we should be building out something for ourselves from wordpress/data. I put together a quick example today and it was requiring me to have a bunch of extra dependencies it doesn't seem like we'd need |
We can use the stores in woocommerce/data 👍 So likely won't need to set up stores ourselves for options etc. but probably makes sense for our own onboarding
Apparently they are needed woocommerce/woocommerce-admin#5636 New package coming to help with dependency extraction https://github.com/woocommerce/woocommerce-admin/tree/main/packages/dependency-extraction-webpack-plugin (I couldn't get it to work for us.) |
Are there any hidden docs for |
Hey @tomalec have you taken a look at
|
Yes, I did, they give a nice overview of |
I'm looking for something like https://developer.wordpress.org/block-editor/packages/packages-data/ but for |
Unfortunately, I don't think there is anything more detailed. One thing that I just saw flagged this morning is there is a new package coming WordPress/gutenberg#26866 |
I'm closing this issue. We are using wp-data since #138. |
Look into whether there is any base setup we need to implement WooCommerce Admin data store and utilities.
https://www.npmjs.com/package/@wordpress/data
Some great reading https://unfoldingneurons.com/2020/wordpress-data-series-overview-and-introduction (which is linked from an internal post p90Yrv-1Ay-p2 )
Also in consideration with investigating integrating with AssetDataRegistry - where it can be used to pre-hydrate the store (it was suggested we might need to look at the AssetDataRegistry)
We'll likely need to create a few different data stores as we develop the UI:
The text was updated successfully, but these errors were encountered: