Skip to content
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

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

Polybius93
Copy link
Collaborator

No description provided.

Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for resilient-salamander-989e97 ready!

Name Link
🔨 Latest commit adde4dc
🔍 Latest deploy log https://app.netlify.com/sites/resilient-salamander-989e97/deploys/65fc0a0e6f229000080f5fad
😎 Deploy Preview https://deploy-preview-56--resilient-salamander-989e97.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 20, 2024

Deploy Preview for singular-biscuit-78f561 ready!

Name Link
🔨 Latest commit adde4dc
🔍 Latest deploy log https://app.netlify.com/sites/singular-biscuit-78f561/deploys/65fc0a0edeb7d70008937650
😎 Deploy Preview https://deploy-preview-56--singular-biscuit-78f561.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Collaborator Author

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
Copy link
Contributor

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.

Copy link
Collaborator Author

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).

Copy link
Contributor

@rozanagy rozanagy left a 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

@Polybius93 Polybius93 merged commit d8b4f97 into dev Mar 21, 2024
16 checks passed
@Polybius93 Polybius93 deleted the feat/confirmation-query branch March 21, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants