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

fix (offset - 1) pagination #584

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Conversation

dimaMachina
Copy link
Contributor

fixes #409

@dimaMachina dimaMachina requested a review from a team as a code owner January 16, 2024 20:35
@dimaMachina dimaMachina changed the title fix offset pagination fix (offset - 1) pagination Jan 16, 2024
@@ -7,7 +7,6 @@ export default {
network: 'The Graph Network',
sunrise: 'Sunrise FAQ',
billing: '',
'network-transition-faq': '',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this hidden route produced offset - 1 issue since, I used flatDirectories list instead of flatDocsDirectories

because in original nextra-theme-docs were props naming confusing

https://github.com/shuding/nextra/blob/2f001d897f2109b24600f66fe2009e5f788b980c/packages/nextra-theme-docs/src/components/nav-links.tsx#L22
https://github.com/shuding/nextra/blob/2f001d897f2109b24600f66fe2009e5f788b980c/packages/nextra-theme-docs/src/index.tsx#L220

Copy link
Contributor

Choose a reason for hiding this comment

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

Really nice catch!

Comment on lines +70 to +72
- Manifest (`subgraph.yaml`) - The manifest defines what datasources your subgraphs will index.
- Schema (`schema.graphql`) - The GraphQL schema defines what data you wish to retrieve from the subgraph.
- AssemblyScript Mappings (`mapping.ts`) - This is the code that translates data from your datasources to the entities defined in the schema.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just better to use inline code blocks for filenames

@saihaj saihaj merged commit 08de422 into graphprotocol:main Jan 16, 2024
2 of 3 checks passed
@dimaMachina dimaMachina deleted the fix-pagination branch January 16, 2024 20:45
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.

pagination problems
3 participants