Skip to content

React hook useOrdClient or similar #24

Description

@mcullan

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions