Fork me on GitHub

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)?


@cjmurphy not built in. Use random-uuid


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.