diff --git a/docs/content/guides/developer/app-examples/trustless-swap.mdx b/docs/content/guides/developer/app-examples/trustless-swap.mdx index fb6df2e989211..2ae0ef7b188c4 100644 --- a/docs/content/guides/developer/app-examples/trustless-swap.mdx +++ b/docs/content/guides/developer/app-examples/trustless-swap.mdx @@ -1957,6 +1957,10 @@ Add `src/components/locked/ApiLockedList.tsx`: {@inject: examples/trading/frontend/src/components/locked/ApiLockedList.tsx} +This hook Fetches all the non-deleted system `Locked` objects from the API in a paginated fashion. Then, it proceeds into fetching the on-chain state, so we can better trust the latest state of the object in regards to ownership. + +This component uses tanstack's `useInfiniteQuery` instead of `useSuiClientInfiniteQuery` since the data is being fetched from the example's API rather than Sui. + :::danger[Checkpoint] Run your app and ensure you can: