sdk improvement and get profile with events
This commit is contained in:
@@ -20,6 +20,7 @@ export function EventListItem({
|
||||
createdAt,
|
||||
name,
|
||||
properties,
|
||||
path,
|
||||
}: EventListItemProps) {
|
||||
const params = useAppParams();
|
||||
|
||||
@@ -46,16 +47,15 @@ export function EventListItem({
|
||||
|
||||
switch (name) {
|
||||
case 'screen_view': {
|
||||
const route = (properties?.route || properties?.path)!;
|
||||
if (route) {
|
||||
bullets.push(route);
|
||||
if (path) {
|
||||
bullets.push(path);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return bullets;
|
||||
}, [name, createdAt, profile, properties, params]);
|
||||
}, [name, createdAt, profile, properties, params, path]);
|
||||
|
||||
return (
|
||||
<ExpandableListItem
|
||||
|
||||
@@ -12,6 +12,12 @@ const handler = (req: Request) =>
|
||||
session: auth(),
|
||||
};
|
||||
},
|
||||
onError(opts) {
|
||||
const { error, type, path, input, ctx, req } = opts;
|
||||
console.error('---- TRPC ERROR');
|
||||
console.error('Error:', error);
|
||||
console.error();
|
||||
},
|
||||
});
|
||||
|
||||
export { handler as GET, handler as POST };
|
||||
|
||||
Reference in New Issue
Block a user