Closed ben-brooker closed 2 years ago
Can you recreate the behaviour in a sandbox perhaps?
Last time I tested it it worked as it should in all browsers and I have a NextJS application with SSR myself where I have never experienced any problems so there is likely something additional at play here.
Also, why do you use dangerouslySetInnerHTML
? Is this a component or the root of your app? The MathJaxContext
should only be in the root component of the app.. not that this should affect the current behaviour but still :)
Hi,
The MathJaxContext component wraps a HTML component which formats text. The project is rather large which is why I opted to only wrap this component.
It is now working on the browsers, however it flickers slightly (between rendered and non-rendered) when refreshing the page (and sometime does not render the latex). Do you know why this happens?
It sounds like you have a complex setup with potentially some very particular scenarios...
hideUntilTypeset
property.. there are also other tips and tricks regarding this if you read the docs here in Github.dynamic
flag on the MathJax
component.Can you point me to anywhere where this can be seen? Almost impossible to help out otherwise :(
Removing since no further information was added. Please reopen with more information if needed.
I am building a NextJS application with server-side rendering. This code works fine in some cases and not in others. For example, Upon refreshing a successfully rendered page, the wrapper seems to no longer work. Also, it seems to work well on edge but not safari. Are you aware of this issue? Is there a way around it? Thanks.