28b4593a1d
Co-authored-by: bwallacee <ben@vega.xyz>
16 lines
451 B
TypeScript
16 lines
451 B
TypeScript
import { useDataProvider } from '@vegaprotocol/data-provider';
|
|
import { activeOrdersProvider } from '@vegaprotocol/orders';
|
|
import { useVegaWallet } from '@vegaprotocol/wallet-react';
|
|
|
|
export const PartyActiveOrdersHandler = () => {
|
|
const { pubKey } = useVegaWallet();
|
|
const variables = { partyId: pubKey || '' };
|
|
const skip = !pubKey;
|
|
useDataProvider({
|
|
dataProvider: activeOrdersProvider,
|
|
variables,
|
|
skip,
|
|
});
|
|
return null;
|
|
};
|