-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: replace fetching with reactqueries for block height fetching #56
Conversation
✅ Deploy Preview for resilient-salamander-989e97 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for singular-biscuit-78f561 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -25,6 +25,7 @@ export function MintUnmint({ address }: MintUnmintContainerProps): React.JSX.Ele | |||
setTimeout(() => { | |||
setAnimate(false); | |||
}, 1000); | |||
// eslint-disable-next-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not my fave, but we have a very strict linter, so it's okay. :)
const { blockHeight } = useContext(BlockchainHeightContext); | ||
|
||
let txID; | ||
switch (vault?.state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank You!
@@ -35,7 +35,9 @@ export function useVaults(): UseVaultsReturnType { | |||
}; | |||
|
|||
useEffect(() => { | |||
// eslint-disable-next-line @typescript-eslint/no-floating-promises |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't know but if these lint rules are something you think we don't need or too restrictive, we can exclude some rules from the linter file instead of adding these comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, I like having the lint rules restrictive like this, we are only disabling lines which would warn us, not errors.
All of them are good rules, it's nice to have these kinds of warnings, but exhaustive deps can be too demanding is certain cases and no floating promises can be misleading (for example it doesn't see if we are awaiting a fetch function later in a Promise.all).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally i am okay with it, i added some comments, but those won't prevent the merge.
there is one unused export according to the Checks
No description provided.