You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The react-fela provider components, RendererProvider and ThemeProvider, should be able to accept any kind of React node as children. Instead, they only accept a single React element child:
I don't see why this is a bug. Fair enough, nowadays we don't really need the Children.only anymore, but there's nothing breaking or misbehaving. Just pass a single child for now and it works fine e.g. wrap it with <></>.
Still a good point to remove those with the next version.
Type: Bug
Description
The
react-fela
provider components,RendererProvider
andThemeProvider
, should be able to accept any kind of React node as children. Instead, they only accept a single React element child:fela/packages/react-fela/src/RendererProvider.js
Line 12 in b73826b
fela/packages/react-fela/src/ThemeProvider.js
Line 9 in b73826b
Steps to reproduce
Expected Behavior
Renders without an error.
Actual Behavior
Fails to render with a React render error:
The text was updated successfully, but these errors were encountered: