Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Solana Client enhancements #306

@tobeycodes

Description

@tobeycodes

Related to #202

My recommendation is as follows:

  • Replace useSolanaClient and useUpdateSolanaClient to be one hook like useState. const [client, updateClient] = useSolanaClient
  • Use context to store client instead of react query
  • Update react query cacheKey to use the ID of the cluster and remove invalidation logic that currently exists when updating a client
  • Remove QueryClientProvider from SolanaProvider and update documentation that this needs to be adding in your application

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions