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

URL filter flash #1405

Open
shawnrivers opened this issue Jan 25, 2021 · 0 comments
Open

URL filter flash #1405

shawnrivers opened this issue Jan 25, 2021 · 0 comments
Labels
improvement Improvements to the codes

Comments

@shawnrivers
Copy link
Owner

What is URL filter flash?

If you reload on /discography?filter=albums, you will see the result of /discography and then see the result of /discography?filter=albums.

This behavior is due to the nature of SSG. When the page is being generated, it outputs the result when the URL filter is empty, and this is the response you will get every time you access the route of /discography.
When you hit the browser reload button, the server serves the empty filter HTML. Then JS kicks in (re-hydrate) and updates the result with the filter-applied result.

@shawnrivers shawnrivers added the improvement Improvements to the codes label Jan 25, 2021
@shawnrivers shawnrivers changed the title Fix URL filter flash URL filter flash May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvements to the codes
Projects
None yet
Development

No branches or pull requests

1 participant