Ahsan Ali Mansoor·Jul 9, 2025Eliminating Race Conditions in NestJS with Distributed LockingIn modern APIs especially those handling payments, inventory, or user quotas race conditions can cause serious data inconsistencies…A response icon2A response icon2
Ahsan Ali Mansoor·Jul 30, 2023Using Context API and useReducer for Global State Management in ReactIntroduction
Ahsan Ali Mansoor·Apr 8, 2023New CSS Media Range QueriesI despise media inquiries. I know it sounds strange, but I despise their syntax. I’ve never been comfortable writing code like min-width…
Ahsan Ali Mansoor·Apr 8, 2023Creating a Chrome extension with React and TypeScriptAs Chrome extensions get more complicated, developers come up with ways to make it possible for already-existing tools to grow and change…A response icon2A response icon2
Ahsan Ali Mansoor·Aug 28, 2022Apollo Client Cache Rehydration in Next.jsApollo Client is a popular GraphQL client that can cache the results of your queries, among many other features. If you have an entirely…
Ahsan Ali Mansoor·Aug 28, 2022Ultimate Guide for useImperativeHandle HookGiven that it functions very differently from the majority of the other hooks, useImperativeHandle is perhaps one of the more perplexing…A response icon1A response icon1
Ahsan Ali Mansoor·Aug 28, 2022useId Hook ExplainedRecently, React 18 received its official non-beta version. The majority of the significant improvements include modifications to…A response icon1A response icon1
Ahsan Ali Mansoor·Jul 13, 2022useDeferredValue Hook ExplainedReact 18 recently had its official non-beta release and with it came multiple new React hooks to help deal with concurrency and rendering…A response icon1A response icon1
Ahsan Ali Mansoor·Jul 13, 2022useTransition Hook ExplainedReact 18 recently received its official non-beta release, which included a slew of new React hooks. The useTransition hook is the one I am…A response icon2A response icon2
Ahsan Ali Mansoor·Jul 13, 2022Why It’s Never A Good Idea To Store Derived StateWe’ve all done it. You’re working on a React app when your state goes out of sync. There are numerous explanations for this issue, but…A response icon1A response icon1