Skip to content

RSC styles blink when Next is streaming #5728

Open

Description

@laurenskling
Schermopname.2026-04-14.om.10.46.01.mov

It's hard to see in the video without going frame by frame, but I understand what is happening.

This is on a very slow network, Nextjs with cacheComponents. Next is streaming in the HTML. As style tag are now right next to the component, you'd think this will work well. But what is happening, is that the last instance of a component will get the style tag. Making all other components unstyled until the last one comes in.

For example, in this video, my Container component adds padding around the page. There's one all the way at the bottom, thats where the style tag is. The video shows my page jumping all over the place, because (along others) the Container not being styled for a long time.

Activity

  1. quantizor commented on May 19, 2026

    @quantizor
    Contributor

    Haven't been able to repro this yet but it's on my radar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions