Comments (7)
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.
from the-graph.
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: [email protected]
from the-graph.
@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.
from the-graph.
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.
from the-graph.
@krizka are you aware of other React 16 issues, or do you think we can close this one?
from the-graph.
@jonnor I had no problems using the-graph with React 16. But the warnings about static fields on components, which I hope we fixed.
from the-graph.
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.
from the-graph.
Related Issues (20)
- Dragging to move nodes, create edges unreliable on mouse HOT 2
- Touch-only input broken HOT 3
- Missing dist/ in NPM package HOT 3
- Make icon map loadable via CommonJS HOT 1
- Cannot move viewport using thumbnail HOT 4
- `Nested transactions not supported` error HOT 2
- [Question] Do something on edge creation HOT 4
- editor.addErrorNode is not a function
- Publish version with latest changes HOT 7
- Node.js tests failing HOT 10
- installing dependecies on linux fails HOT 2
- canvas-prebuilt dependency is no more HOT 2
- Roadmap of this Library HOT 1
- TS typing HOT 1
- Can't resolve 'fs' when using react component
- 'editor' is not defined, and unable to access editor methods in react hooks HOT 2
- Cannot read properties of undefined (reading 'length') HOT 3
- how do I use its `triggerFit` method in react 18? HOT 3
- Nav minimap can't drag properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from the-graph.