useOwnerListings
This hook is SWR powered and also handles infinite loading UX. The hook is an extension of the useListings hook. It's a convenient way to fetch the listings that belong to the currently connected wallet. The parameters are exactly the same as the aforementioned useListings hook.
import { useOwnerListings } from '@reservoir0x/reservoir-kit-ui'
const {
data: listings,
fetchNextPage,
hasNextPage,
} = useOwnerListings()
Updated over 2 years ago