1 link tagged with all of: context + user-authentication + nextjs + props-drilling
Click any tag below to further narrow down your results
Links
Async Local Storage provides a solution to avoid props drilling in Next.js route handlers by allowing functions to access a shared user context without passing it explicitly. By wrapping functions in a `userContext.run()` block, developers can streamline access to user data while ensuring that functions cannot operate without the necessary context. However, the author notes the lack of a linter to catch missing context blocks as a potential improvement.