Skip to content

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Jan 10, 2024

Problem solved

  • Instead of showing a warning when react-hooks/exhaustive-deps lint rule is not followed - throw error instead
  • Fix react-hooks/exhaustive-deps issues in payments components

@MananTank MananTank requested a review from a team as a code owner January 10, 2024 12:11
@MananTank MananTank requested a review from a team January 10, 2024 12:11
Copy link

changeset-bot bot commented Jan 10, 2024

🦋 Changeset detected

Latest commit: d643efb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
eslint-config-thirdweb Patch
@thirdweb-dev/react Patch
@thirdweb-dev/auth Patch
thirdweb Patch
@thirdweb-dev/merkletree Patch
@thirdweb-dev/react-core Patch
@thirdweb-dev/react-native-compat Patch
@thirdweb-dev/react-native Patch
@thirdweb-dev/sdk Patch
@thirdweb-dev/storage Patch
@thirdweb-dev/unity-js-bridge Patch
@thirdweb-dev/wallets Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MananTank
Copy link
Member Author

@IDubuque Can you verify that the useEffect deps changes I have made in this PR do not add unwanted side-effects?

Copy link

codecov bot commented Jan 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ead1e42) 67.50% compared to head (d643efb) 67.50%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2138   +/-   ##
=======================================
  Coverage   67.50%   67.50%           
=======================================
  Files         291      291           
  Lines       11017    11017           
  Branches     1513     1513           
=======================================
  Hits         7437     7437           
  Misses       2955     2955           
  Partials      625      625           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jnsdls jnsdls requested a review from IDubuque January 11, 2024 08:29
@jnsdls jnsdls added the DO NOT MERGE This pull request is still in progress and is not ready to be merged. label Jan 11, 2024
@jnsdls
Copy link
Member

jnsdls commented Jan 11, 2024

waiting on @IDubuque review

@@ -36,7 +36,7 @@ export const Modal: React.FC<{
return () => {
document.removeEventListener("keydown", keyDownHandler);
};
}, []);
}, [escapeToClose, onClose]);
Copy link
Member

Choose a reason for hiding this comment

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

this one is fine

@@ -84,7 +84,7 @@ export const VerifyOwnershipWithPaper: React.FC<
return () => {
window.removeEventListener("message", handleMessage);
};
}, []);
}, [onError, onSuccess, onWindowClose]);
Copy link
Member

Choose a reason for hiding this comment

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

this one is fine

@@ -141,7 +141,7 @@ export const PaperCheckout = <T extends ContractType>({
return () => {
window.removeEventListener("message", handleMessage);
};
}, []);
}, [onCloseCheckout, onPaymentSuccess, onTransferSuccess]);
Copy link
Member

Choose a reason for hiding this comment

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

this one is fine

Comment on lines +101 to +112
appNameToUse,
clientId,
configs,
locale,
onBeforeModalOpen,
onCardDetailLoad,
onError,
onPaymentSuccess,
onPriceUpdate,
onReview,
options,
sdkClientSecret,
Copy link
Member

Choose a reason for hiding this comment

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

this one needs a deeper look

Copy link
Contributor

@IDubuque IDubuque left a comment

Choose a reason for hiding this comment

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

Changes look good

@MananTank MananTank added this pull request to the merge queue Jan 11, 2024
Merged via the queue into main with commit 6047d67 Jan 11, 2024
@MananTank MananTank deleted the mnn/exhaustive-deps-error-lint branch January 11, 2024 17:52
@github-actions github-actions bot mentioned this pull request Jan 11, 2024
jnsdls pushed a commit that referenced this pull request Jun 19, 2024
new hackathon image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO NOT MERGE This pull request is still in progress and is not ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants