Chalarangelo/30-seconds-web

Fix lazy React Context hydration from local storage

Chalarangelo opened this issue · 1 comments

After merging #310 there seems to be a flickering cookie prompt on loading the page. This seems to be due to React Context loading from local storage. We can add some kind of delay or hide it outside of the viewport if possible to make the issue less prominent.

There also seems to be a similar issue with dark mode, probably due to React Context. Will have to investigate.