Specifying insertion point when using useServerInsertedHTML
Unanswered
Gray-crowned Yellowthroat posted this in #help-forum
Gray-crowned YellowthroatOP
Hi everyone!
We are seeing FOUC issue when using emotion with prepend set to true (relevant issue: https://github.com/emotion-js/emotion/issues/3059). When emotion's cache is setup with prepend set to true, it ensures emotion styles are loaded before any other styles. This makes it easy to override them.
However, it doesn't seem like it is possible to enforce that emotion styles indeed load before other styles when using useServerInsertedHTML? I did find a workaround using CSS layers, but just wanted to check that there is indeed no way to control where inserted HTML ends up when using useServerInsertedHTML.
Thanks!
We are seeing FOUC issue when using emotion with prepend set to true (relevant issue: https://github.com/emotion-js/emotion/issues/3059). When emotion's cache is setup with prepend set to true, it ensures emotion styles are loaded before any other styles. This makes it easy to override them.
However, it doesn't seem like it is possible to enforce that emotion styles indeed load before other styles when using useServerInsertedHTML? I did find a workaround using CSS layers, but just wanted to check that there is indeed no way to control where inserted HTML ends up when using useServerInsertedHTML.
Thanks!