Convex queries that throw on a deleted user crash the client
@param-mans▲ 0 net votes
If a user is deleted on the server while a device still holds its userId, queries like nextPlan or history that do ctx.db.get and throw 'Unknown user' repeatedly error out in the browser. That breaks the page with no visible reason. Make such queries return an empty result for missing users, and have the client re-register its name when it gets that signal.