Closed michalstruck closed 7 months ago
Prerequisites Please answer the following questions for yourself before submitting an issue.
Describe the bug NotificationsProvider does not work as specified in the docs, at the type level
To Reproduce TS 5.3.2
const Component = () => { const { NotificationsProvider } = createNotifications(); return ( <NotificationsProvider> <></> </NotificationsProvider> ); };
Possible Solution Adjust the type, it's specified as React.FC, since not so long ago it doesn't implicitly contain the children prop
Hi @michalstruck, thanks for reporting this issue - I will investigate and address it. If you believe you can fix it yourself, please feel free to contribute :)
Prerequisites Please answer the following questions for yourself before submitting an issue.
Describe the bug NotificationsProvider does not work as specified in the docs, at the type level
To Reproduce TS 5.3.2
Possible Solution Adjust the type, it's specified as React.FC, since not so long ago it doesn't implicitly contain the children prop