I have created a code component and register as component. However, the DataProvider only made the data available to the children of the component. Is it possible to have the data available globally so that I can use the data with other component and not limited to its children?
I do not want to use registerGlobalContext as those props will be in Project Setting which inconvenience me to set it props dynamically.
Thank you.
To expose the data from a code component so that it is available across pages and other components, we need to use GlobalContext. However, due to my use case I want to provide dynamic data into the code component properties.
So I work around and create a function within the code component and using the function I exposed the data using the Interactions in Plasmic Studio and pass the data to a state variable.
For my current use case this is suffice.