preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
949 stars 148 forks source link

findDOMNode returning null #499

Closed ttches closed 6 years ago

ttches commented 6 years ago

This code is working in v3.18.0, but @latest, findDOMNode is returning null even though I can console.log the component I'm passing in.

screen shot 2018-08-20 at 10 04 46 am

screen shot 2018-08-20 at 10 06 45 am

pl12133 commented 6 years ago

@ttches When you say @latest, could you confirm you have 3.18.3 installed?

This was broken by ad59cf3e9f80c48027d7df12c322c0d27fccccf7 in 3.18.1 but it should have been fixed by ff884c95a2151f95bccf3f6d1675c49709bc0dfe in 3.18.3.

ttches commented 6 years ago

I deleted node_modeules and reinstalled with 3.18.3 and it's working now. Thank you!