Hi ,
I have followed the link - Create Redux store under Widget Communication section of Sample Code. Created a store extension in a custom widget (Widget1) and tried to access the store in another custom widget (Widget2). But I could not access it through 'useSelector'. My requirement is to access the store in a custom module(.tsx) instantiated in a widget (Widget1) which extends the store and also in its widget.tsx file.
My folder structure
your-extensions/
├── widgets/
│ ├── widget1/
│ │ └── store-extensions/
│ │ | └── store-extension.js
| | └── src/runtime/widget.tsx & customModule.tsx
| | └── manifest.json
│ ├── widget2/
| | └── src/runtime/widget.tsx & customModule.tsx
│ │ └── manifest.json
I also tried keeping the store in a common place and extending it in both widget's manifest files
your-extensions/
├── widgets/
│ ├── shared/
│ │ └── store-extensions/
│ │ └── plan-store.js
│ ├── widget1/
│ │ └── manifest.json
│ ├── widget2/
│ │ └── manifest.json
However, I could not successfully specific the uri for extension in manifest.json from shared folder it is not accepting it.
Any pointers on how to use the custom store extension in multiple widgets and its components.
Hi @JeffreyThompson2. Could you please guide me in this.
Thanks in advance.