Posts by Anas Sheikh

@Anas Sheikh

PIxel Anas

Full-stack developer building premium Next.js templates & web apps. Specializing...
Pakistan pixelanas.com Joined August 2026
1.8k Points • 94 Badges • 9 Connections • 8 Followers • 12 Following

Posts by Anas Sheikh

Anas Sheikh • • in Articles • 4 min read
You upgrade from Next.js 14 to 15. The app compiles, the tests pass, nothing visibly breaks. A week later your database bill is higher, your pages feel slower, and your Time to First Byte graph has a step in it that lines up exactly with the deploy. ...
Anas Sheikh • • in Articles • 4 min read
A user scrolls through your feed. Page 1 ends with "Post 20". They tap "Next", and page 2 starts with... "Post 20" again. Another user pages through an admin table and never sees order #4817. It exists. It is in the database. It just never showed up...
Anas Sheikh • • in Articles • 4 min read
A customer clicks "Pay now". Nothing happens for three seconds, so they click again. Or their phone loses signal for a moment and the app quietly retries the request. Or your load balancer times out and sends the request again. Your server received ...
Anas Sheikh • • in Articles • 4 min read
You need a theme provider, so you create a file, add 'use client' at the top, and wrap your app in it. Then a nagging thought arrives: "I just wrapped my entire layout in a client component. Did I turn the whole app into client-side React?" Most de...
Anas Sheikh • • in Articles • 4 min read
Your stomach drops. You typed git reset --hard, or deleted the wrong branch, or a rebase ended with half your commits missing. The log looks empty. Three days of work, gone. Take a breath. If you ever committed that work, it is almost certainly stil...
Anas Sheikh • • in Articles • 3 min read
You build a dashboard. Sidebar on the left, content on the right, a table or a code block inside. It looks perfect with your sample data. Then a user pastes a long URL into a field, and the whole page grows a horizontal scrollbar. The sidebar gets s...
Anas Sheikh • • in Articles • 4 min read
You format a date in a component. It looks right on your laptop. Then a user in another country opens the page and either sees a console full of hydration errors, or worse, sees nothing wrong at all and reads the wrong time. I live in a timezone tha...
Anas Sheikh • • in Articles • 4 min read
Your endpoint sends 50 emails, marks 50 orders as shipped, and returns { success: true }. In your tests, it works. In production, the response comes back in 8 milliseconds, half the orders are still pending, and one failed email crashed the whole No...
Anas Sheikh • • in Articles • 4 min read
TypeScript's most dangerous keyword is two letters long. as does not convert anything. It does not check anything. It tells the compiler "trust me", and the compiler does. If you are wrong, the error moves from your editor to your users. Here are f...
Anas Sheikh • • in Articles • 4 min read
You add a small search box to your navbar. It reads the query string, so you reach for useSearchParams. Everything works in next dev. You push, the deploy fails, and the build log says: useSearchParams should be wrapped in a suspense boundary at pag...
Anas Sheikh • • in Articles • 4 min read
Here is a bug report you will eventually get: "The signup form told me what was wrong on your machine, but on the live site it just says something went wrong." Nothing is broken. Next.js is doing this on purpose. But the code that triggers it looks ...
Anas Sheikh • • in Articles • 6 min read
How Much Does a SaaS MVP Cost? Your SaaS MVP cost is decided mostly by four things: how many features you launch with, whether people need accounts to log in, whether you take payments, and how polished the design has to be. A focused MVP built aro...
Anas Sheikh • • in Articles • 3 min read
Almost every Tailwind developer hits this exact bug once, usually right after a deploy, and the confusing part is that nothing about it looks wrong in the code, nothing throws an error, and it worked completely fine five minutes earlier on the same m...
Anas Sheikh • • in Articles • 4 min read
This is the kind of bug that goes from "works perfectly in every test" to "actively leaking one customer's data to another customer" without a single code change in between, purely because of how caching and personalization interact in a way that isn...
Anas Sheikh • • in Articles • 4 min read
This is one of the more consequential Mongoose gotchas because of exactly what tends to live inside a pre'save' hook, password hashing, slug generation, validation logic, and exactly which methods silently bypass it without ever telling you. The Set...
Anas Sheikh • • in Articles • 4 min read
Redirecting a user back to the page they were trying to reach after they log in is good, expected UX. Nobody wants to log in and land back on the homepage when they were actually trying to read a specific article or check out a specific product. The ...
Anas Sheikh • • in Articles • 3 min read
Middleware feels like the cleanest way to gate an entire section of a Next.js app behind auth, one file, one config, covering everything under a path. That confidence is exactly the problem, because the matcher config that's supposed to define "every...
Anas Sheikh • • in Articles • 4 min read
You find out a user's permissions need to change right now, maybe they're being demoted from admin, maybe their account access is being revoked entirely after an incident. You update the database. The change looks instant in your admin panel. Meanwhi...
Anas Sheikh • • in Articles • 4 min read
This is one of those bugs where the code looks completely reasonable, passes every manual test you'd naturally think to run, and still ships with a real defect that only shows up under a specific, very common usage pattern: someone typing faster than...
Anas Sheikh • • in Articles • 4 min read
Somewhere along the way, a lot of Next.js developers picked up the idea that "Server Actions are secure by default" and quietly generalized that into "mutations in this app are secure by default." Those are not the same statement, and the gap between...
chevron_left