fix(posts): hide stale initializing footer

This commit is contained in:
Tommaso Casaburi
2026-06-18 22:27:30 +07:00
parent 87df18162c
commit fb1a61eace
4 changed files with 32 additions and 3 deletions
@@ -0,0 +1,8 @@
type PostLoadingStateComment = {
state?: string;
timestamp?: number;
updatedAt?: number;
};
export const shouldSuppressPostLoadingState = (post: PostLoadingStateComment | undefined): boolean =>
Boolean(post?.timestamp && (!post.updatedAt || post.state === 'initializing'));