-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move towards using react-query for account data lifecycles (#215)
* yes, I think this is less code :) Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * move the react-query query function to getAccountss.ts Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * WIP - i get a blank electron, no dev-tools, and no errors in the console :( Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * WIP - i get a blank electron, no dev-tools, and no errors in the console :( Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * why do I keep having to fix this? Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * and now it works - useQuery for tokenlinst Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * token metadata react-query Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * use react-query for top level AccountView getParsedAccount request Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * how does it look when we have a useParsedAccount(net, pubKey) hook? Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * invalidate the react-query cache on demand, and on mint - but ... it needs a tiny delay :/ Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * replace useInterval with useQuery - not perfect, but not spamming the rpic endpoint either - for #207 Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * linties Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * ok, weird fix, but letting the mint info retry seems to make the Mint accordion work Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * sssshhhh those logs Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * sssshhhh those logs Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> * noidea what changed this, remove Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
- Loading branch information
1 parent
43f3509
commit 773b7ae
Showing
11 changed files
with
439 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
"[json]": { | ||
"editor.defaultFormatter": "vscode.json-language-features" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.