Closed a-c-sreedhar-reddy closed 3 years ago
Some of us found them to be a bit of a trap. You can see the discussion in the original reason-apollo-hooks PR here: https://github.com/reasonml-community/reason-apollo-hooks/pull/122#issuecomment-633560391
Mostly because the state was not always mutually exclusive - like it can be (re)loading and have data - so you would end up with a lot of variants. A product type is better for this, and we can pattern match on it as well.
Hi,
Any reason why the
use
function returns records instead of variants?