David AlonsoD
Convex Community2y ago
2 replies
David Alonso

__tableName is undefined

Hey, I have a component that takes in an id: Id<"blocks"> | Id<"tables">; and I want to have a quick way to check the type of id.
Currently I was doing: const isPageItem = id && id.__tableName === "blocks"; but __tableName seems to be undefined.
What should I do?
Was this page helpful?