For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hello, I have an issue with useStorage hook in checkout ui extension. I've been trying to write data in one block and read data in second block, but all I get is null. Docs says that data is shared across all activated extension targets of this extension. So same type blocks can read each others data, but not different blocks.
Would it be possible to share data between different blocks as well?
Solved! Go to the solution
This is an accepted solution.
Yes, I wanted to connect 2 checkout ui extensions Storage API didn't help. But I found a different way to communicate - through metafields.
In versions 2023-07 and earlier, each activated extension target had its own storage.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Yes, I wanted to connect 2 checkout ui extensions Storage API didn't help. But I found a different way to communicate - through metafields.