vercel / satori

Enlightened library to convert HTML and CSS to SVG

Home Page:https://og-playground.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Satori does not work with components which are using forwardRef

sdorra opened this issue Β· 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

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