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

Updated tanstack table to v8.x #2564

Merged
merged 16 commits into from
Jul 5, 2024
Merged

Conversation

anderson-oki
Copy link
Collaborator

@anderson-oki anderson-oki commented Jul 4, 2024

Description

This Pull Request contains the minimum change to support the migration to Tanstack Table v8. There are much more space for improvements and performance optimizations but i will refactor in future commits.

Tanstack table rebuilt from the ground up, so mostly of the table had to be re-developed from the scratch while keeping all the existing feature we already had in Bazarr.

While performance can still be improved, heavy memoization, and callback also references have been used to minimize the maximum amount of re-renders as possible.

An additional, the hooks that was heavily being recreated every re-render have been moved to outside of the columns, and added as dependency instead.

Some Cell components got optimized and extracted into its own non-exported component in the same file so it can be memoized.

@anderson-oki anderson-oki marked this pull request as draft July 4, 2024 08:23
@anderson-oki anderson-oki changed the base branch from master to development July 4, 2024 08:23
@anderson-oki anderson-oki changed the title Updated to react table v8 Updated react table v8 Jul 4, 2024
@anderson-oki anderson-oki self-assigned this Jul 4, 2024
@anderson-oki anderson-oki marked this pull request as ready for review July 4, 2024 11:45
@anderson-oki anderson-oki changed the title Updated react table v8 Updated tanstack table v8 Jul 4, 2024
@anderson-oki anderson-oki changed the title Updated tanstack table v8 Updated tanstack table to v8.x Jul 5, 2024
@anderson-oki anderson-oki merged commit 8beebce into development Jul 5, 2024
@anderson-oki anderson-oki deleted the feature/deps-react-table-v8 branch July 5, 2024 00:56
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.

Embedded Subtitles transform ass to srt
1 participant