Skip to content

Commit 6e4d1e7

Browse files
committed
chore: add changeset for RSC dynamic creation fix
1 parent e871d06 commit 6e4d1e7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'styled-components': patch
3+
---
4+
5+
fix: suppress false "created dynamically" warnings in React Server Components
6+
7+
The dynamic creation warning check now properly detects RSC environments and skips validation when `IS_RSC` is true. This eliminates false warnings for module-level styled components in server components, which were incorrectly flagged due to RSC's different module evaluation context. Module-level styled components in RSC files no longer trigger warnings since they cannot be created inside render functions by definition.

0 commit comments

Comments
 (0)