@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / react / useWatchMarket

Function: useWatchMarket()

useWatchMarket(pool): WatchStatus

Defined in: packages/sdk/src/hooks.ts:205

Watch one market while mounted (ref-counted; shared with the data hooks) and report its watch state — render loading UI off "hydrating".

Background acquisition failures use the configured debug/console warning channel. Use the corresponding useWatchMarketResult/useWatchUserResult/useWatchPriceResult hook for inline error UI.

Parameters

pool

string | undefined

Returns

WatchStatus

Throws

No Markets provider is mounted.