Layouts combined with Server Components are awesome, and allow us to make database calls right from out components. However, there is a common pitfall with them when it comes to how we think of their rendering order. This is critical if you are trying to hide specific content using a layout check, as you may find the content can still be exposed using a GET request. Lets se what we can do to fix that, and explain why.
Diagrams: https://app.eraser.io/workspace/kmEnY...
Blog Post Explainer: https://www.ericburel.tech/blog/stati...
Twitter (X): https://jollycod.ing/x
Personal Site: https://jollycod.ing/me
GitHub: https://jollycod.ing/git
JollyUI: https://jollycod.ing/ui
Where I Work: https://jollycod.ing/work