The Intersection Observer Hook That Actually Handles Conditional RenderingEvery Intersection Observer tutorial on the internet has the same bug. They just don't know it yet. The pattern goes like this: create a ref, attach it to your element, set up an IntersectionObserver Mar 23 · 5 min readaviralsharma.hashnode.dev
How to Implement a Token Refresh Queue to Prevent Concurrent 401sWhat happens when 5 API calls fire at the same time and your access token expires mid-flight? They all fail. All 5 get a 401. Your user sees a broken dashboard. Maybe they get logged out. Maybe half tMar 16 · 7 min readaviralsharma.hashnode.dev
Stop Breaking React: Why You Should Compute Values Instead of Storing Everything in StateHow I fixed infinite re-renders and discovered a simple rule that changed how I write React components Last week, I spent three hours debugging what seemed like a simple dashboard feature. Users could filter data by date range, and I needed to show ...Jun 7, 2025 · 6 min readaviralsharma.hashnode.dev
Building a High-Performance Social Media Intelligence Feed: Lessons from the TrenchesBuilding a social media feed seems straightforward—until you actually build one. As a Frontend Developer at Zappit.ai, I recently completed work on our Social Media Intelligence feed that shows users posts from their competitors and aspirational bran...Mar 18, 2025 · 7 min readaviralsharma.hashnode.dev
Proof of Work vs Proof of StakeBlockchain is at the center of the Web 3 Ecosystem. Today we are using it in an increasing number of domains. Blockchain provides decentralization and security that Web 2 applications and interfaces fail to do (Proof of Work vs Proof of Stake). dApps...Jul 8, 2024 · 9 min readaviralsharma.hashnode.dev