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(routing): Fix filter and board sorting performance #1567

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

purusott
Copy link
Collaborator

@purusott purusott commented Jul 3, 2024

Slow filter caused by NextJS routing

router.replace() behaved slow to update the browsers history stack (tested with React profiler), so the main solution was to use the alternative history API to fix the performance issues.

This also makes sorting in /boards faster compared to before

Also did some refactoring in Filterbutton and page

@purusott purusott requested review from oyvindgrutle, emilielr and lindtvedtsebastian and removed request for lindtvedtsebastian July 3, 2024 10:03
Copy link
Collaborator

@emilielr emilielr left a comment

Choose a reason for hiding this comment

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

Deilig opprydning!! Ble myye cleanere 🤩

next-tavla/app/(admin)/boards/page.tsx Outdated Show resolved Hide resolved
@purusott purusott requested review from emilielr and removed request for lindtvedtsebastian July 5, 2024 08:39
@purusott purusott merged commit e0ec042 into master Jul 5, 2024
3 checks passed
@purusott purusott deleted the fix-filter-performance branch July 5, 2024 11: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.

2 participants