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

Will universal-router be maintained in the near future? #135

Open
adrian-moisa opened this issue Oct 18, 2017 · 6 comments
Open

Will universal-router be maintained in the near future? #135

adrian-moisa opened this issue Oct 18, 2017 · 6 comments
Labels

Comments

@adrian-moisa
Copy link

adrian-moisa commented Oct 18, 2017

Sounds like a dummy question but let's review some context. I have been working with angularjs, angular2 and react in the previous years and all of them have popular routing solutions. Now I'm trying to ditch frameworks in favor of native web components. So far I managed to build a basic demo. Now I need to setup a proper routing solution. I've been looking around for possible solutions and I have found Visionmedia page, Flatiron director and App-router. All of them seem to have been abandoned by the maintainers. for more than 2 years. I am looking for a router that will be around for the foreseeable future.

So basically I need some reassurance about the future of universal-router. The project I build I expect it to be alive for several years. Looking at the contribution graphs it looks like the repository is really healthy.

@frenzzy
Copy link
Member

frenzzy commented Oct 18, 2017

Hey @adrian-moisa, thank you for your interest. This project is maintained since Mid 2015 by @kriasoft org and used in popular projects such as React Starter Kit (15k stars) and React Static Boilerplate (3k stars) supported by the same maintainer. These projects are alive and actively used in real-life products. So yes, I think it will be maintained in the near future.

Upcoming project updates: add more recipes, improve website and maybe implement an option for custom global error handler.

@adrian-moisa
Copy link
Author

Thank you for the quick answer. I have already started implementing the library. So it looks like I'm going to stick around. 👍

@ghost
Copy link

ghost commented Dec 8, 2017

+1 - also moving to native web components and looking for a good router solution. Nice to see this solution will be maintained into the future.

@adrian-moisa
Copy link
Author

adrian-moisa commented Dec 16, 2017

@chrismbeckett I will publish soon a npm module that bridges the gap between universal router and web components. Currently if you use universal router together with web components as indicated in the Quickstart tutorial, usage with React you will have lots of trouble with rendering the routes in an efficient way. Due to the fact that react uses a virtual dom the update of the view is already efficient by default.

For webcomponents it is necessary to use a <router-outlet> component that updates only the nested web components that are synced with the routes. For this you need to generate a tree of routes using universal router and than parse that tree to actually update the web components tree in an efficient way. Right now I'm working on a prototype that fixes this issue. I will publish in on github as soon as I have a stable version.

I'm also working on nano data binding solution for web components that will remove all the boilerplate involved in setting up nested web components in large scale apps. It will have the typical DSL that you see in an angular app but using far less code (400 LOC so far). It is design with limitations used to encourage functional reactive programming (state store) instead of manipulating data in the "controllers". My intent is to provide a lightweight data binding solution for web components that anybody can understand end to end in just 30 mins of study.

I'll keep you updated as soon as I have published a minimal working version (beginning of January).

@Christian24
Copy link

@adrian-moisa that sounds awesome. Any update on that?

@fehmi
Copy link

fehmi commented Jun 29, 2021

Looks like it is not possible...

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

No branches or pull requests

4 participants