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 deps in that signature isn't necessarily homogeneous, but polymorphic. So any deps can be passed as long as there is an Eq instance for that type. This is different from JS where you must provide dependencies in a tuple.
If you want a heterogeneous collection in PureScript, you could use a tuple or a record (which both have an Eq instance if the types they contain have Eq instances):
I'm sorry for the noob question,
useEffect
signature is:in js I often use
but
useEffect
has a homogenousdeps
, how can I have adeps
list of different types?I know this is more of a question about PureScript, but I think this is the best place to make this particular question and leave it for newcomers.
The text was updated successfully, but these errors were encountered: