Fork me on GitHub
#re-frame
<
2023-02-16
>
hifumi12305:02:53

The pattern i’ve developed for my apps is similar to what the redux author described. e.g. input state is local to the parent form, but actual submission of the form happens with a re-frame event that pulls data from the db; the app-db is eventually consistent with local form state by updating the app-db when elements of the form blur

hifumi12305:02:21

i.e. rather than updating the app-db on input, i try to be less aggressive in updates, but also update just frequently enough so that the app-db and local state agree when users actually submit data