See all services → Shopify Plus Partner
API Developer

Use Reactive POS Storage to Sync Extension Targets

Shopify's new shopify.storage.current API exposes POS extension storage keys as reactive signals, so one target can react when another writes. It is additive in API version 2026-10 and existing extensions need no changes.

Executive summary

What changed

Storage in POS UI extensions used to be read on demand. If a background target fetched a value and a tile needed to display it, the tile read storage again on a timer and hoped the timing lined up. shopify.storage.current changes the read side: each key becomes a reactive signal you can read or subscribe to, and a write from another target of the same extension on the same device propagates to subscribers.

Writes and removals are unchanged and still go through the existing Storage API methods. The API is additive in version 2026-10, so existing extensions need no changes and extensions on earlier versions simply cannot use it. One behaviour deserves attention during implementation: stored values load asynchronously, so a signal reads as undefined until its key finishes loading. That initial state and a genuinely missing key look similar and both need handling.

Why it matters

This is a developer ergonomics improvement, not a new retail capability. Nothing becomes possible that was impossible before. What changes is the amount of code between a stored value and the screen, and that code was usually where the bugs lived.

Polling loops on a register are not free. They burn battery on handheld hardware and they leave a window where the tile shows a value that is already stale. Staff notice, because it surfaces as a loyalty balance or stock figure that disagrees with the next screen. Removing the polling removes the window, which quietly reduces odd reports from the floor in much the same way disciplined inventory syncing reduces disputes about stock.

Role-specific impact

Use-case example

Real-world scenario

A retailer with 18 stores runs a POS extension that shows a customer's loyalty balance on a smart grid tile. A background target fetches the balance once the customer is attached to the cart and writes it to storage. Previously the tile re-read storage every two seconds to catch that write, so staff saw up to two seconds of nothing or of the previous customer's figure, and learned to tap the tile twice. Subscribing to the key removes the timer and the double tap. Across a chain doing a few thousand transactions a day, that is seconds saved per lookup and one fewer piece of staff folklore to train.

Implementation checklist

  1. Confirm the extension targets API version 2026-10 or later, since earlier versions do not include this API.
  2. List the storage keys that are written by one target and read by another.
  3. Replace polling and repeated reads on those keys with reads or subscriptions through shopify.storage.current.
  4. Handle the undefined initial state while a key loads, and distinguish it from a key that is genuinely absent.
  5. Keep all writes and removals on the existing Storage API methods.
  6. Test with two targets of the same extension active on one device, which is the scope in which propagation applies.
  7. Verify behaviour on your real register hardware, not only in simulation, and watch the first render carefully.

FAQ

Q: Do we have to update existing extensions?

A: No. The addition is optional and the existing Storage API methods behave exactly as before. Adoption makes sense when an extension already polls storage or passes data between targets.

Q: Does a write on one register reach another register?

A: No. Propagation covers targets of the same extension on the same POS device. Anything that needs to cross devices still belongs in a server side data flow.

Resources

POS UI extensions Storage API reference

Need guidance? Talk to Makro.