Skip to main content

Function: Inspector()

function Inspector(__namedParameters?): Element;

A floating panel showing what this tab is saying and hearing on the bus: peers, the leader, store keys with their version clocks, and a live wire log in both directions.

It deliberately does not create a Leader. Under dynamic eligibility, mounting one with eligible: false would disable candidacy for the whole tab, and mounting a plain one would enrol a tab that never asked to be a candidate — a devtool must not change what it measures. Instead it reads the crown out of the wire log, which it already sees in both directions.

Presence is fine to use: the bus heartbeats regardless of whether anything created a Presence, so usePeers observes rather than perturbs.

Parameters

ParameterType
__namedParametersInspectorProps

Returns

Element