Fork me on GitHub
#re-frame
<
2019-01-23
>
mv01:01:30

Does anyone have any examples of using spec to enforce a schema on the re-frame db? Or other advice on how to approach structuring the DB?

bskinny02:01:24

@mv You can reference https://github.com/bskinny/helodali/blob/master/src/cljs/helodali/spec.cljs as a datapoint, with the spec enforced in events.cljs. There’s likely a better way though and I will look for one on my next app.

mv02:01:07

Cool, thanks

mikethompson03:01:11

@mv the todomvc example in the repo does this

👏 5