Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Switch to React #457

Closed
martinheidegger opened this issue Jan 26, 2018 · 9 comments
Closed

Switch to React #457

martinheidegger opened this issue Jan 26, 2018 · 9 comments

Comments

@martinheidegger
Copy link
Collaborator

martinheidegger commented Jan 26, 2018

The title says it all but let me explain the issue: I have tried to help with the update from mircocomponent to nanocomponent and also tried to improve the existing test situation. And while choo is certainly not a bad framework, I have to say that it made getting into dat-desktop harder. Most of the issues that I have found stem from unclear state management and render triggers (example: the whole list of items gets re-rendered when only the network state changed).

With choo I have yet to find a good way on how to do good propagation of updates in child components in order for parent components to trigger an update (example: if the hex-icon changes state that the whole row needs to be redrawn). The implementation in the nanocomponent feels hacky at best, both in the child and in the parent.

It is possible to work around such issues but seeing as the time working on dat is limited to me I would rather like to focus on improving the desktop than on trying to fix older issues. I have no-one in my local community that I can ask about choo but several people engaged into React development and this is probably true for a lot of other possible contributors. Thus I would like to ask if its okay to send a PR that switches from choo to react.

I am not sure this is needed but here is a short summary of reasons I feel would make it worth to switch:

@okdistribute
Copy link
Collaborator

Sounds good to me!

@yoshuawuyts
Copy link
Contributor

👍 sure

@juliangruber juliangruber mentioned this issue Jan 27, 2018
@juliangruber
Copy link
Collaborator

It has started :) #458

@juliangruber
Copy link
Collaborator

I've created a GitHub project to track progress: https://github.com/datproject/dat-desktop/projects/1

@e-e-e
Copy link

e-e-e commented Apr 4, 2018

This is excellent news. I have plenty of experience with react, so this change will make it much more easier for me to contribute. I am glad that facebook removed the patent from React.

@simonv3
Copy link

simonv3 commented May 23, 2018

From that project it looks like this is pretty close to done, is that right? It's just a matter of getting all the tests to pass?

@martinheidegger
Copy link
Collaborator Author

@simonv3 - There are some issues with adding dats, some build settings are not yet added again. But other than that it should be mostly finished.

@simonv3
Copy link

simonv3 commented May 23, 2018

@martinheidegger if those are documented I can try taking a crack at some of those things?

@okdistribute
Copy link
Collaborator

This is done!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants