You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.
ForwardRefs don't work for me either. Adding a check at line 55 in prepare.js fixes it.
// current
if (typeof type === 'string' || isFragment(element)) {
// fix
if (typeof type === 'string' || isFragment(element) || isForwardRef(element)) {
Type of issue
bug
Description
When wrapping a stateless component in a React.forwardRef SSR breaks on prepare.
Current behavior
Error:
Component:
Expected behavior
Wrapping stateless component in React.forwardRef should render SSR without an error.
React Docs - Forwarding Refs
Steps to reproduce
Your environment
fusion-react-async version:
1.2.3
Node.js version:
v8.11.3
npm version:
5.6.0
Operating System: OSX
10.13.5
The text was updated successfully, but these errors were encountered: