You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by tomas7 December 10, 2021
It would be very helpful to have an option to pass data (either product slug or id) to addActionBarItem as a payload or parameter and access it in the embedded app (React).
My user case: Venture admin-UI is extended by react-app. React component is fetching data from another API based on selected product (slug/id), button addActionBarItem is located at product-details. When I try to pass the ID to the URL, react component can't access it.
Is there any workaround?
Request created based on @michaelbromley from Vendure Slack Channel.
Original comment: We are lacking an API that allows you to easily access state from your embedded app.
This can be added though - we can use the same PostMessage channels that we already use to securely pass data to the data service & notification service. Could you open a feature request for this?
Thank you for any help,
Tomas
The text was updated successfully, but these errors were encountered:
Discussed in #1280
Originally posted by tomas7 December 10, 2021
It would be very helpful to have an option to pass data (either product slug or id) to addActionBarItem as a payload or parameter and access it in the embedded app (React).
My user case: Venture admin-UI is extended by react-app. React component is fetching data from another API based on selected product (slug/id), button addActionBarItem is located at product-details. When I try to pass the ID to the URL, react component can't access it.
Is there any workaround?
Request created based on @michaelbromley from Vendure Slack Channel.
Original comment: We are lacking an API that allows you to easily access state from your embedded app.
This can be added though - we can use the same PostMessage channels that we already use to securely pass data to the data service & notification service. Could you open a feature request for this?
Thank you for any help,
Tomas
The text was updated successfully, but these errors were encountered: