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
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
It was never expected to be passed around between components, since it is global state. The child would be able to useGlobal() to generate the same function without a prop.
It's pretty safe, so I don't have any opposition to exposing it.
You are welcome to open a pull request to resolve this issue; or if you aren't comfortable doing that, please confirm that the child calling useGlobal itself does not address your use case, and I'll try to make the commit this week.
Is there a reason why the Setter type is not exported in use-global.d.ts?
I'm passing the setter to a child component and would like to strongly type the prop, but currently that's not possible since that type isn't exposed.
The text was updated successfully, but these errors were encountered: