*What are you trying to do?
Im trying to access my app but sometimes I get random CORS error form data.plasmic.app
What are the reproduction steps?
It happens randomly, it may happen one day, then its fine for 3-5 days then suddenly data.plasmic.app gives cors and can’t access my data on any computer. When it gets like that I can only access it via studio.
Relevant pic:
Would it be possible to have more control over the data provider? Like embedding the data provider server to self host plasmic to be 100% to have full control over my app
Hello @anderson_pena, we had some issues on our servers today morning. It has been fixed and shouldn’t happen anymore. We don’t plan on providing self host for the data sources feature, but if you want to have total control over your data access we recommend creating a data fetch code component Data-fetching components | Learn Plasmic
Thanks for your response.
Regarding data fetching components, would the data fetched by them be available on plasmic studio under $queries just like the normal fetching?
You would need to provide the data under a <DataProvider>
component and register the component as providesData
. This would make the data available in $ctx
in studio.
Hi again, I been trying the the data fetch code component but I encountered a mayor issue, the data is only available for the children.
Is it possible to make the data fetched be available for any part of the hierarchy just like $queries work?
Hey @anderson_pena, for this case you should add the fetcher at the top most place you would like to access the data. This way everything will be a children and will have access to it.