Greetings everyone,
I am playing with a small toy webapp with ReasonReact frontend + Reason Apollo Hooks + Rust backend. Honestly, it is a pretty fun and pleasant experience!
Unfortunately, I just had a hard time fixing a silly bug, where a useCallback
hook was not taking all its dependencies as second argument. I totally understand that this is how React works, but with ReasonML we don’t have all the linting environment developed for JS (and for good reasons!), and in this case we inherit the issues without the tooling.
Do you know if there is some sort of typed abstraction to avoid these pitfalls? If not, do you think that it could be possible/worth implementing something related? Maybe using a ppx? I am asking because I am pretty new with the language, and maybe someone already worked on this specific issue… Thank you!