Downsides of using AsyncLocalStorage on Server Components?
Hi guys, i just wana know if there's any downsides of using Aysnc Local Storage from Node.js in Server Components?
I've an example App that show how it will work. https://stackblitz.com/edit/stackblitz-starters-9a4rak
My use case is the following. I've an app that make many fetch call to the API to get data, the majority of those fetch calls need the page params. Currently the only way to get params in a RSC is layout.tsx or page.tsx props, and then you need to pass those values as props.
So, the question using this approach have any downsides? Is this even recommended?
0 Replies