In part 1.1, we reviewed the API layer in websites route. In this article, we review the /links route
You will find the links page in umami/src/app/(main)/links/page.tsx. Again, in the API layer part 1.1, we reviewed the websites page, let’s check if there is a common pattern implemented in fetching the list of links as well.
I can see a pattern here, both websites and links fetch the data using Tanstack query hooks and passed down the data as a prop to a table component to render. I also found that fetcher is reused, defined in the useApi.
It is important to stay consistent to reduce technical debt and write manageable code, especially when you are dealing with large codebases.
I spent 200+ hours analyzing Supabase, shadcn/ui, LobeChat. Found the patterns that separate AI slop from production code. Stop refactoring AI slop. Start with proven patterns. Check out production-grade projects atthinkthroo.com