Closed rajasegar closed 6 months ago
If you log out your nabber and planets objects, what do you see?
Do you have a full running code example? It all looks fine to me at a glance but happy to run something and try it out.
@digitalsadhu All the code is hosted here, though I have removed the code that is not working, you can just copy / paste. https://github.com/podium-starwars You can see the demo here https://podium-starwars.herokuapp.com/
Sorry for the slow reply, I just realised what's likely happening here. When your podlet is slow to respond, the layout will abort the fetch and render the fallback instead. The default timeout for this is 1000ms. This can be configured in the layout client. See: https://podium-lib.io/docs/api/layout#client
Thank you @digitalsadhu will try that config.
When I do some data fetching inside podlet's content path with
async await
, that particular podlet content is not available to the layout.Podlet
Layout