Skip to content
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

React16 port #379

Closed
sarat1669 opened this issue May 3, 2018 · 7 comments
Closed

React16 port #379

sarat1669 opened this issue May 3, 2018 · 7 comments

Comments

@sarat1669
Copy link

Can we support React16?

@jonnor
Copy link
Member

jonnor commented May 10, 2018

The basics work with React16, see this example: #360 (comment)

If you see things that don't work, please post them here as comments!

I would be very happy for a Pull Request that: updates API usage to no longer use deprecated functions, switches to React 16, fixes any critical bugs. Then we could probably switch over right away.

It is unlikely that I will be able to do the port within the next couple of months, unless someone is willing to sponsor such development.

@wizard23
Copy link

Hi! I'm having problems using the-graph with preact ( https://preactjs.com/ ) which also does not like strings for refs. preact only supports functions as refs. Would the react16 port include functions for refs? I would really like to use the-graph for my current project since it is the best flow based programming graph editor I found during my two days web research. I have some budget for this project so I could sponsor some dev time. Could you please estimate the needed dev time and your hourly rate. If you want we can switch to personal communication for that purpose. My email is: wizards23@gmail.com

@jonnor
Copy link
Member

jonnor commented Sep 12, 2018

@wizard23 I had a quick look at the-graph use of refs. There are not that many, and I think that probably they can all be removed in favor of props/state (or better component composition). Are you aware of other things that cause issues with Preact? Whether it is reasonable to support that in addition to React depends entirely on how much differences there are.

@wizard23
Copy link

wizard23 commented Sep 12, 2018

@jonnor

Are you aware of other things that cause issues with Preact?

I'm pretty sure this is the only problem for preact. I've ported some apps tp preact now and this is the only problem that comes up. I can't say for sure though since the ref stuff causes an exception and the rest of the code does not get executed.

@jonnor
Copy link
Member

jonnor commented Nov 12, 2018

@krizka are you aware of other React 16 issues, or do you think we can close this one?

@krizka
Copy link
Contributor

krizka commented Nov 12, 2018

@jonnor I had no problems using the-graph with React 16. But the warnings about static fields on components, which I hope we fixed.

@jonnor
Copy link
Member

jonnor commented Nov 12, 2018

Great, thanks for testing and for the PRs! Closing this issue then.

Right now there is no resources (spare time) to add Preact support on our side. If someone is willing to test and submit a PR with compatibility fixes and these are small, I will consider merging them.

@jonnor jonnor closed this as completed Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants