satori icon indicating copy to clipboard operation
satori copied to clipboard

Satori does not work with components which are using forwardRef

Open sdorra opened this issue 1 year ago • 1 comments

Bug report

Description / Observed Behavior

Satori does not render components which are using forwardedRef. For example FontAwesomeIcon.

Expected Behavior

Satori should render components which are using React.forwardRef.

Reproduction

The following demo uses the latest next.js canary and should show 👋 Hello World 👋, instead it renders only World 👋 the 👋 Hello uses a forwardRed and is not rendered.

https://github.com/sdorra/og-with-forwardRef

sdorra avatar Mar 07 '24 08:03 sdorra

I've already opened an issue at next.js, but i think it is more a satori bug than a next.js one.

sdorra avatar Mar 07 '24 08:03 sdorra