-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with React 16 #122
Comments
@EtienneLem Is it possible for you to release an updated version on npm soon? I know not all of the bugs that I found are fixed yet, but I'm excited to upgrade Mastodon to React 16 asap |
Just released v2.0.0 (changelog) 🎆 Let me know if you hit any rough edges while importing into your app, hopefully we haven’t overlooked anything 😅 Bug fixes coming soon ✌️ |
Welp, after upgrading I immediately got this error on compile:
and
I wonder if that's my fault somehow 🤔 |
🤔 Well Will be fixing that shortly. |
Are we not bundling? I didn't change the Webpack config much. Actually there's an argument to be made about using Rollup instead of Webpack since this is a library and could benefit a lot from tree-shaking and that stuff, but I opted to not suggest that because developing this component with storybook is much more convenient. @nolanlawson might know more than me on this. |
Regarding the |
No worries, quickly fixing everything (my bad, tried to release too fast) and will explain everything after 😄 |
FYI: Was realllllly close to fixing everything (turns out there was a few more things), but I really do need to go now. Taking the plane later tonight, I might get a chance to finish during the flight. (sorry) |
🔊 AIGHT! v2.0.1 should be working 🤞 So, about that bundle thing: We indeed do not bundle anymore since v2.0.0 (#105, #108). Greatly reduces the size of the lib (which is most likely one of the biggest dependency of most people because of the emojis data 👎) and I believe developers aren’t affected by that in the end. For example, in Missive we’re using Webpack but with CoffeeScript (no Babel). The way That is why |
✨ It works! My PR to upgrade Mastodon to React 16 is now in a working state. There are still some bugs that occur with this component that I created issues for, but it's looking good! 🍰 |
The code uses string-based refs in multiple places, I believe. That functionality was marked for deprecation in React 15. React 16 was just released, and no longer supports this feature.
The text was updated successfully, but these errors were encountered: