@somnia-chain/markets-sdk


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

Function: useWatchUser()

useWatchUser(user, options?): void

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

Hydrate + hold user's order/fill history while mounted, so the user-scoped live reads have depth predating the market watches.

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

Parameters

user

string | null | undefined

options?

HookChainOptions = {}

Returns

void

Throws

No Markets provider is mounted.