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: remove redirect loader #189

Merged
merged 2 commits into from
Dec 6, 2024
Merged

fix: remove redirect loader #189

merged 2 commits into from
Dec 6, 2024

Conversation

VanishMax
Copy link
Contributor

@VanishMax VanishMax commented Dec 6, 2024

Previously, we were redirecting users from "/" and "/trade" pages to "/trade/UM/USDC" using client-side components. It made the app firstly load empty screen, wait for the whole bunch of JavaScript to process, and only then send a fetch request for a default asset pair. It annoyed me, so I changed the redirect to be server-side using Next middleware. Feels like a lightning speed!

As a plus, added the not-found page.

The next video shows before and after.

middleware.mp4

Not found page

image

@VanishMax VanishMax requested a review from a team December 6, 2024 09:01
@VanishMax VanishMax self-assigned this Dec 6, 2024
Copy link
Contributor

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

what the heck that is so much faster! 🏎️ 🔥

@VanishMax VanishMax merged commit 8f1a5a7 into main Dec 6, 2024
3 checks passed
@VanishMax VanishMax deleted the fix/loader branch December 6, 2024 09:27
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