Latex Not Updating with Dynamic Data

I am currently trying to load latex from a database to an element. I am able to render the latex using mathjax however once a question is loaded, it doen’t change even when new data is loaded. i tried updating the DOM using " wwLib.getFrontWindow().MathJax.typeset() " in a custom javascrip function but this only works the first time and doesn’t updated when other data is loaded. I have to constantly restart the page to view new rendered information.

1 Like

My best guess would be you need to wrap it in a component, and re-render it each time your initial data changes. So you’d call the render function in an “On component property change”

I’ve found a work around. but i would trying out your approach. Thanks for the response.