-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
A hook could be helpful for de-duplicating requests across components/renders, could be based on React Query or similar. This may be scoped for this lib or may make sense as an extension ordapi-react
For example, something like
const Component = () => {
const ordClientHook = useOrdClient(URL)
const inscription = ordClientHook.getInscriptionChildren(INSCRIPTION_ID, IX)
}
where then the request corresponding to .getInscriptionChildren could be cached / de-duplicated etc.
Metadata
Metadata
Assignees
Labels
No labels