Comments (5)
Have you seen the product page example in the Repo? Up until now I only address integration on one page and data fetching/skeleton there.
I’m planning to add more examples to show how page transitions (html app shell) could be implemented. This is the next topic I’ll address.
After that I’ll go into performance topics, lazy loading, code splitting, bundling. And finally show a possible integration with a shared pattern library.
I currently don’t intend to build a ready to use boilerplate, which is production ready. My main goal is to show one way how it can be done.
I also haven’t decided yet if I want to add larger frameworks like Angular/react to the examples. I guess it might be helpful for some people, but for showing the mechanics I like sticking to simple plain JavaScript.
Where are you giving the talk? Is it public? Like to see your take on this.
from micro-frontends.
Yes, if you want client side page transitions you would have to establish a shared top-level router. This could also be done in a way that works server-side.
single-spa does a similar thing. They let the individual apps responde to url changes and let them take over control if they want to.
from micro-frontends.
Hi @amazzoccone,
Yes I would give every fragment/component it’s own data fetching and state management and it’s totally fine if a team decides to use GraphQL internally. It would also be ok for a team to share state between multiple of its own fragments on the same page, but not across different teams.
I really like the idea of stencil and played with their universal rendering feature a bit. I haven’t gotten the chance to use this in a bigger project yet. But it would be very cool if you could assemble an example with this.
Feel free to use the assets of the examples here. I could link or maybe integrate the example once it’s done.
Same goes for universal routing. As I said, here I’m planning to build an example myself, but don’t let that block you. I don’t have a schedule for this yet.
Thanks, naltatis
from micro-frontends.
@naltatis i have some doubts about this strategy for Micro frontends. How could be managed page transitions? Using a router in the front?
Mosaic implements something similar. What are the differences?
Thanks a lot!
from micro-frontends.
Thanks @naltatis !
UI Services have multiple Web Components and each one is responsable, is needed, of have their own State Management (Redux for example) and request API to get/post data?
Let's say the back system has an API Gateway built with GraphQL..
Some Web Components of a UI Service could use internally Apollo to simplify requests?
What do you think of StencilJS?
If you like the idea, I could work to contribute with a 4 example that would have a more complete stack:
- Webapp with a Router for SPA and SSR
- UI Services with Web Components built with StencilJS, Redux, Apollo/GraphQL
Thanks a lot!!
from micro-frontends.
Related Issues (20)
- Suggestion: have a look at the Java Portlet specifications HOT 2
- Top-level routing HOT 8
- Nodemon HOT 1
- Apply for translation HOT 7
- Server Side Rendering HOT 1
- Can we achieve this with angular elements HOT 1
- Micro-frontends as an advantage to using web components with a headlessCMS
- Team Blue Missing! HOT 1
- share common resources between teams HOT 3
- Thanks about micro-frontends concept. HOT 1
- Any ETA for navigation reference? HOT 4
- micro frontend
- Added Portuguese Translation HOT 1
- Added Korean Translation HOT 3
- Misleading diagram wrt frameworks HOT 2
- Why did you start to call component architecture as "microfrontends"? HOT 5
- How to have error handling mechanism in microfrontends? HOT 1
- Universal Composition: Render Call Question HOT 2
- Integrate micro frontend from different repo? HOT 1
- Can we create composite app with React and Jinja Template together?
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 micro-frontends.