According to the documentation, it should be possible to share data between extensions.
However, when I try to write data in Extension A and read it in Extension B, the value is always returned as null.
Stored data is only available to this specific app but can be shared across multiple extension targets.
Has anyone successfully shared data between multiple extensions using this storage API? Am I missing a required configuration or scope?
Docs reference:
Hi @mateusvahl
The docs do say storage “can be shared across multiple extension targets” - but this is not the same as sharing between separate extensions.
If you have two separate extensions (Extension A and Extension B with their own config files), they will not share storage. However, if you consolidate them into a single extension with multiple targets, they should be able to share storage.
1 Like
Got it, Thanks for clarifying,
I would love to have some sort of storage across different extensions(scoped by app?).
To give one example, most customers land in the orders page, where we show a order-index extension & a link to a fullpage extension.
We could save a couple seconds by caching data from the order-index extension(or even pre-load) when the customer navigates to the fullpage.
Thank you.