Skip to content

Commit ceea5ff

Browse files
committed
Add use client to slot entry to prevent RSC errors
1 parent cf1b1dd commit ceea5ff

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/open-sheep-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@radix-ui/react-slot': patch
3+
---
4+
5+
Add `use client` to slot entry to prevent RSC errors

packages/react/slot/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use client';
12
export {
23
Slot,
34
Slottable,

0 commit comments

Comments
 (0)