With quite a bit of discussion and other links at https://github.com/day8/re-frame/issues/264
Use :params
instead of :body
.
Note that :params
expects something that has not been encoded yet.
For the details, consult https://github.com/JulianBirch/cljs-ajax#getpostput
Thanks @p-himik, I'm glad that the documentation certainly has gotten better - it's been a while since I last visited the page. It's interesting to note I had arrived at the exact same best practice concepts without reviewing the documentation. first, that I have to pass the id along and that I can at least package the args into entity specific fns. Perhaps I was looking for yet another level but this at least confirms I'm on the right path
oh crap, of course, I thought :params
where for query params only. thank you!
https://day8.github.io/re-frame/reusable-components/ is a really good reference. Thanks for sharing @p-himik
> What Is Identity?
> An identity
is anything which can be used to distinguish one entity from another - something which distinguishes A
from B
.
> In a different technology stack, it might be called "a pointer" or "a reference" or "a unique key".
Between pointer, reference, and "unique key", I thought only unique key would be considered an identity. I thought an identity is dependent on a data model, not on its concrete representation.