Global styles declared in _document.js doesnt get applied on first load after server restart.
Steps to reproduce the behavior, please provide code snippets or a repository:
<style jsx global{ * { margin: 0; } }</style>Styles to be displayed on first load
You shouldn't use styled-jsx in _document.js. Instead use _app.js or use the <style> tag directly.
Most helpful comment
You shouldn't use styled-jsx in _document.js. Instead use _app.js or use the
<style>tag directly.