inline <style> tags get removed by <Suspense> streaming, making styles disappear

Author: laurensklingCreated Sep 3, 2026Updated Sep 17, 2026

In my Nextjs project with cacheComponents, I have a reading the searchParams to see if it needs to set pre-selected search options in my search engine. The fallback I give it, is the search options components without any selections, and when searchParams are read, the correct selections are set. So I move from a "skeleton" (the fully rendered engine, without selection) to the "real" populated component.

Since the component is rendered in fallback at first, it receives

Source: styled-components/styled-components