Closed jerbaroo closed 5 months ago
Suggested pattern:
useState
for each field..e.g.
setCountry /\ country <- useState userRemote.country
setCert /\ cert <- useState userRemote.cert
setName /\ name <- useState userRemote.name
let userLocal =
(\country' cert' name' ->
{country: country', cert: cert', name: name'})
<$> country <*> cert <*> name
A modify state function would be useful from time to time, where x is an object with a few fields.