This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
normalised zustand store for NFTs #1147
intergalacticspacehighway
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Updating an NFT's server state is a bit painful.
Why
Scenario
already claimed
, we have to find the SWR cache of that specific API and mutate it. i.e. the claim button needs to know somehow what API it needs to call. This problem can be partially solved as we did in this PR. But I think a better solution is possible.Proposal
e.g. in
useNFTDetail
hook will look something like belowUpdating state
Pros
Cons
Alternatives considered
Beta Was this translation helpful? Give feedback.
All reactions