React Concurrent Mode - Revisited

Understanding React Concurrent Mode & The Problems It Solves

Author

Aashish Tiwari
Aashish TiwariSenior Software Engineer - II

Date

Mar 5, 2020

Concurrent Mode was announced about a year ago and is still an experimental feature that lets our app remain responsive in different network conditions and based on different device capabilities. Without any further ado, let's discuss the new features and concepts introduced in Concurrent Mode. We will discuss these features in the context of React and React apps:

1. Interruptible Rendering

Normally in React, if rendering begins and a user event occurs (like clicking a button), React will first complete the previous render and then process the user event. So, React uses blocking rendering, which can create some performance issues.

Concurrent Mode introduces the concept of interruptible rendering, so if rendering has started and a user event happens in between, React will stop the previous rendering, process the user event first, then continue the remaining part of the previous rendering. Concurrent Mode uses Time Slicing for interruptible rendering.

2. Data Fetching With Suspense

It works on a Render as you Fetch approach, which means that React starts loading the data without waiting for the component to load. Both the data and component start loading in parallel.

Here, we wrap our MySuspenseImage component in a Suspense component, which provides the fallback component until the image is loaded. We try to render MySuspenseImage even when imageData is not yet loaded. This makes MySuspenseImage suspend as a promise is thrown. The Suspense component catches the promise and shows the fallback component in the meantime. As soon as the promise resolves, it re-renders the image component. If any errors occur during data loading, they can be handled using the ErrorBoundary component.

3. SuspenseList

Suppose a page has multiple API calls. It’s likely their responses won’t come in the order required by the UI, which affects user experience. We can chain promises to maintain order, but that adds complexity.

SuspenseList solves this by providing a controlled loading sequence for different parts of the page. It wraps multiple Suspense components and uses the revealOrder property to control the order of reveal: 'forwards', 'backwards', or 'together'.

We can also control the number of loading indicators using the tail property, which can be 'hidden' or 'collapsed'. When tail is 'collapsed', only one loader is shown at a time.

In the example (shown in the GIF), with revealOrder='forwards' and tail='collapsed', first the user image is rendered, then user details, and finally user comments. This ensures smooth, sequenced UI loading. All async processes begin together, but the reveal order is controlled visually via SuspenseList.

4. useTransition Hook

Suppose you're on a fast connection and click your profile. You may transition instantly and see a loader for just 200ms, causing UI flicker. This can be fixed with complex logic, but the useTransition hook simplifies it.

It lets you wait on the current screen while new data loads, then transition smoothly.

The useTransition hook returns two values:

  • startTransition() – Handles the deferred state update.
  • isPending – A boolean that indicates if the data is still loading.

When a user clicks to navigate, React prepares the update in a separate branch while remaining on the current screen. If data loads quickly, it transitions early; otherwise, it waits for the defined timeout, then transitions. This reduces jarring screen transitions and flickering loaders.

You can see that the loader is shown on the previous screen while userDetails are fetched, then transitions smoothly to the new screen, loading the remaining data.

GitHub project link: https://github.com/Aashishgtbit/concurrent-react-example

References: https://reactjs.org/docs/concurrent-mode-intro.html

Thank you for reading!

Book a Discovery Call

Recaptcha Failed.

Related Articles.

More from the engineering frontline.

Dive deep into our research and insights on design, development, and the impact of various trends to businesses.

How We Built an AI System That Automates Senior Solution Architect Workflows
Article

Apr 6, 2026

How We Built an AI System That Automates Senior Solution Architect Workflows

Discover how we built a 4-agent AI co-pilot that converts complex RFPs into draft technical proposals in 15 minutes — with built-in conflict detection, assumption surfacing, and confidence scoring.

AI Code Healer for Fixing Broken CI/CD Builds Fast
Article

Apr 6, 2026

AI Code Healer for Fixing Broken CI/CD Builds Fast

A deep dive into how GeekyAnts built an AI-powered Code Healer that analyzes CI/CD failures, summarizes logs, and generates code-level fixes to keep development moving.

A Real-Time AI Fraud Decision Engine Under 50ms
Article

Apr 2, 2026

A Real-Time AI Fraud Decision Engine Under 50ms

A deep dive into how GeekyAnts built a real-time AI fraud detection system that evaluates transactions in milliseconds using a hybrid multi-agent approach.

Building an Autonomous Multi-Agent Fraud Detection System in Under 200ms
Article

Apr 1, 2026

Building an Autonomous Multi-Agent Fraud Detection System in Under 200ms

GeekyAnts built a 5-agent fraud detection pipeline that makes decisions in under 200ms — 15x cheaper than single-model systems, with full explainability built in.

Building a Self-Healing CI/CD System with an AI Agent
Article

Mar 31, 2026

Building a Self-Healing CI/CD System with an AI Agent

When code breaks a pipeline, developers have to stop working and figure out why. This blog shows how an AI agent reads the error, finds the fix, and submits it for review all on its own.

Maestro Automation Framework — Advanced to Expert
Article

Mar 26, 2026

Maestro Automation Framework — Advanced to Expert

Master Maestro at scale. Learn architecture, reusable flows, CI/CD optimization, and how to eliminate flakiness in production-grade mobile automation.Master Maestro at scale. Learn architecture, reusable flows, CI/CD optimization, and how to eliminate flakiness in production-grade mobile automation.

Scroll for more
View all articles