How can i get get the storage value of the previous block

Topic summary

Main issue: Accessing a stored value across multiple blocks in a Shopify Checkout UI Extension.

  • Context: The author is building a Checkout UI Extension for Shopify and uses local storage to persist data.
  • Observed behavior: When only one block is used, reading from local storage works as expected.
  • Problem: After adding a second block, attempts to retrieve the local storage value set by the first (previous) block fail.
  • Request: Guidance on how to access the previous block’s stored value across blocks within the checkout extension.
  • Status: No solutions or workarounds provided yet; the question remains open with no confirmed resolution.
Summarized with AI on December 26. AI used: gpt-5.

Hi Shopify Team
I am working on Shopify checkout ui extension.
When I am working with a single block, I am getting the local storage value. As soon as I create a new block and try to get the storage value of the previous block, I do not get the storage value of the previous block.

Can you please help me how can i get get the storage value of the previous block ?