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: @moralisweb3/next paginated hooks #878

Merged
merged 9 commits into from
Dec 8, 2022
Merged

Feat: @moralisweb3/next paginated hooks #878

merged 9 commits into from
Dec 8, 2022

Conversation

Y0moo
Copy link
Contributor

@Y0moo Y0moo commented Dec 6, 2022


name: 'Pull request'
about: Added paginated hooks for @moralisweb3/next

New Pull Request

Checklist

  • I am not disclosing a vulnerability.
  • My code is conform the code style
  • I have made corresponding changes to the documentation
  • I have updated Typescript definitions when needed

Issue Description

  1. Now it's possible to receive pagination-related data for hooks with paginated responses. Example:
const { data: nfts, pageSize, cursor, total, limit, page } = useEvmWalletNFTs({ address: '0x...' });
  1. Refactored hooks code to improve their readability

@Y0moo Y0moo self-assigned this Dec 6, 2022
@changeset-bot
Copy link

changeset-bot bot commented Dec 6, 2022

🦋 Changeset detected

Latest commit: ea01ddc

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

This PR includes changesets to release 26 packages
Name Type
@moralisweb3/next Patch
@moralisweb3/api-utils Patch
@moralisweb3/auth Patch
@moralisweb3/codegen Patch
@moralisweb3/evm-api Patch
@moralisweb3/evm-utils Patch
@moralisweb3/parse-server Patch
@moralisweb3/sol-api Patch
@moralisweb3/sol-utils Patch
@moralisweb3/streams Patch
@moralisweb3/test-utils Patch
@moralisweb3/common-auth-utils Patch
@moralisweb3/common-core Patch
@moralisweb3/common-evm-utils Patch
@moralisweb3/common-sol-utils Patch
@moralisweb3/common-streams-utils Patch
@moralisweb3/client-api-utils Patch
@moralisweb3/client-evm-api Patch
@moralisweb3/client-firebase-api-utils Patch
@moralisweb3/client-firebase-auth-utils Patch
@moralisweb3/client-firebase-evm-api Patch
@moralisweb3/client-firebase-evm-auth Patch
@moralisweb3/client-firebase-sol-api Patch
@moralisweb3/client-firebase-sol-auth Patch
@moralisweb3/client-sol-api Patch
moralis 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

@Y0moo
Copy link
Contributor Author

Y0moo commented Dec 6, 2022

Please merge it after #872

@Y0moo Y0moo requested a review from ErnoW December 6, 2022 14:31
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

Test coverage

Title Lines Statements Branches Functions
api-utils Coverage: 25%
26.34% (49/186) 19.14% (9/47) 22.85% (8/35)
auth Coverage: 90%
92.77% (77/83) 81.81% (18/22) 90% (18/20)
evm-api Coverage: 100%
100% (80/80) 66.66% (6/9) 100% (48/48)
common-evm-utils Coverage: 64%
64.99% (947/1457) 19.43% (123/633) 35.8% (203/567)
sol-api Coverage: 96%
96.66% (29/30) 66.66% (6/9) 91.66% (11/12)
common-sol-utils Coverage: 74%
73.77% (135/183) 60% (12/20) 65.67% (44/67)
common-streams-utils Coverage: 93%
93.13% (787/845) 85.96% (196/228) 84.14% (276/328)
streams Coverage: 87%
86.71% (398/459) 67.14% (47/70) 84.52% (71/84)

@Y0moo Y0moo requested a review from ErnoW December 8, 2022 12:27
@ErnoW ErnoW merged commit 3340ac5 into main Dec 8, 2022
@ErnoW ErnoW deleted the feat/next-pagination branch December 8, 2022 13:19
This was referenced Dec 9, 2022
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