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

Fixes #38134 - Add custom pagination to table #10413

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kmalyjur
Copy link
Contributor

Adds custom pagination to the TableIndexPage component and prevents users from navigating to a non-existent page by modifying the URL.

Needed for Fixes #38090 - Add filtering to job invocation hosts table.

defaultParams.per_page = urlPerPage;
}
}
// 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.

Is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@girijaasoni It's not, but it's nicer to have this eslint-disable comment than to see the "useEffect has missing dependencies" warning, in my opinion. However, I know we should be consistent. What do you think?

@MariaAga MariaAga self-assigned this Jan 21, 2025
@kmalyjur kmalyjur force-pushed the custom_table_pagination branch from f5310b0 to bf2faf9 Compare January 21, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants