Describe the feature that you would like added
Add use client directive to files with client-only features to support React Server Components.
Additional context
Here is the repo with FluentUI React v9 and Next.js, and every file that has FluentUI import requires 'use client' directive
Files that need to be updated:
packages/react-icons/src/contexts/IconDirectionContext.js
packages/react-icons/src/utils/bundleIcon.js
packages/react-icons/src/utils/createFluentIcon.js
packages/react-icons/src/utils/useIconState.js
packages/react-icons/src/utils/wrapIcon.js
Have you discussed this feature with our team
No response
Validations
Priority
Medium
Describe the feature that you would like added
Add
use clientdirective to files with client-only features to support React Server Components.Additional context
Here is the repo with FluentUI React v9 and Next.js, and every file that has FluentUI import requires
'use client'directiveFiles that need to be updated:
packages/react-icons/src/contexts/IconDirectionContext.jspackages/react-icons/src/utils/bundleIcon.jspackages/react-icons/src/utils/createFluentIcon.jspackages/react-icons/src/utils/useIconState.jspackages/react-icons/src/utils/wrapIcon.jsHave you discussed this feature with our team
No response
Validations
Priority
Medium