rescript-compiler
rescript-compiler copied to clipboard
@deriving(accessors) generates curried functions in uncurried mode
@deriving(accessors)
type msg =
| ShowToast(string, toast)
| EnterToast(string)
| ExitToast(string)
| RemoveToast(string)
This way it's not possible to pass a showToast to a function callback. I'm personally not a fun of @deriving(accessors), so I'll remove the usage of it, but still I'd like to let you know about the problem.