42-student-council / website

Website of the 42 Vienna Student Council
Apache License 2.0
12 stars 2 forks source link

Move sorting preference to cookie to avoid SSR flash #219

Open leeoocca opened 3 weeks ago

leeoocca commented 3 weeks ago

Ok, so the problem with the sorting jump that you described is due to the fact that Remix renders the page server-side first, where it has no access to localStorage.

I'd propose to

  1. keep the scope for this PR on the new column
  2. create another PR to address

What do you think?

Originally posted by @leeoocca in https://github.com/42-student-council/website/pull/213#pullrequestreview-2406525810