Fork me on GitHub
#fulcro
<
2019-09-08
>
cjmurphy14:09:11

When you want to create a tempid, but only for use on the client (ui entities), is there a different type of tempid that can be used, rather than (tempid/tempid)?

tony.kay16:09:20

@cjmurphy not built in. Use random-uuid

tony.kay16:09:41

in fact, most of my applications don’t use tempid at all anymore. We’ve mostly moved to giving everything persistent a UUID identity (in addn to the regular db id) so that it is all UUIDs. Tracking when something is “new” is relatively easy, and the server-side detection of “is it there” for upsert is similarly trivial.