dangerously-set-html-content-v1 icon indicating copy to clipboard operation
dangerously-set-html-content-v1 copied to clipboard

Does not render HTML on SSR pages

Open yashvekaria opened this issue 3 years ago • 1 comments

Hi,

I am using Gatsby in the frontend and I had used this package in order to display article content which also had Instagram, Twitter embedded scripts codes.

Here are the code snippet (I had added static text) 1

Now on the gatsby build (SSR). I don't find any article content on checking that build pages or running that page by disabling JS from chrome dev tools.

Here is the dom element snippet (JS disabled) 2

yashvekaria avatar Nov 30 '21 05:11 yashvekaria

We also need this functionality of server side rendering, please help how to fix this bug ?

ownerni avatar Jan 27 '22 13:01 ownerni

I'm really sorry about this, this feature is only meant to work on a client environment, so the normal behavior will be nothing in there while doing SSR.

christo-pr avatar Nov 03 '22 18:11 christo-pr