Closed rakelley closed 5 years ago
I came across this as well. I will try and take a look at this and see if I can come up with a PR
Related: https://github.com/Limenius/ReactRenderer/issues/27
Yes, adding the static renderer in the presented form was a mistake. Trying to fix it in a new release.
Is there any workaround to this ?
@aesislabs My workaround was to pin to v2.1.0
which works
Still no update on this issue ?
Fixed in v4.
This is regression from #20 .
\Limenius\ReactRenderer\Twig\ReactRenderExtension::__construct()
blindly calls\Limenius\ReactRenderer\Renderer\StaticReactRenderer::setRenderer()
without checking if the renderer is null. This is an intentionally nullable argument and in certain configurations (e.g. using the bundle withdefault_rendering: "client_side"
) will not exist.