mirror of
https://github.com/block/buzz.git
synced 2026-11-12 04:12:21 +00:00
chore(sidebar): earlier pill-diag load and render probes
Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
parent
2143fee81d
commit
8bbdd88a67
@@ -20,6 +20,12 @@ import type {
|
||||
} from "@/shared/api/types";
|
||||
import { normalizePubkey } from "@/shared/lib/pubkey";
|
||||
|
||||
console.log("[pill-diag] module loaded", {
|
||||
loadedAt: new Date().toISOString(),
|
||||
});
|
||||
|
||||
let pillDiagRenderCount = 0;
|
||||
|
||||
type WorkingAgentName = Pick<ManagedAgent, "pubkey" | "name">;
|
||||
type WorkingAgent = Pick<ManagedAgent, "pubkey" | "name" | "status">;
|
||||
type PillDiagProfile = UserProfileSummary & {
|
||||
@@ -164,6 +170,12 @@ export function useActiveWorkingChannelsById(): ReadonlyMap<
|
||||
string,
|
||||
ActiveChannelTurnSummary
|
||||
> {
|
||||
pillDiagRenderCount += 1;
|
||||
console.log("[pill-diag] hook render", {
|
||||
renderCount: pillDiagRenderCount,
|
||||
renderedAt: new Date().toISOString(),
|
||||
});
|
||||
|
||||
const identityQuery = useIdentityQuery();
|
||||
const currentPubkey = identityQuery.data?.pubkey;
|
||||
const managedAgentsQuery = useManagedAgentsQuery();
|
||||
|
||||
Reference in New Issue
Block a user