State Management for Module Federation Four Ways

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 151

  • @Crevulus
    @Crevulus 2 роки тому +26

    More architecture stuff, please! I think a lot of people come to your channel at an intermediate level. And to take the next step up in our careers, we're increasingly asked about how to architect apps, e.g. separating out layers so you just have dumb components in one layer, processing in another, data fetching in another etc.
    I'd really love to see some of your takes on how enterprise architecture works.

  • @tarunsukhu2614
    @tarunsukhu2614 2 роки тому +2

    When ever I need to refresh something Jack is the go to person. Thank you Jack.

    • @jherr
      @jherr  2 роки тому

      And I appreciate all your comments and your viewership! Thank you!

  • @PauloSilva-um5wl
    @PauloSilva-um5wl Рік тому +1

    Hey Jack. thanks so much. you explained so clearly how to implement this feature. I'd like to see more content about federation with next in complex app

  • @StrayVegan
    @StrayVegan Рік тому +1

    Thank you so much for this lesson! Always very comfortable watching your videos! Keep on rolling!

  • @herbertpimentel
    @herbertpimentel 3 роки тому +4

    OMG it is really pretty straight forward. I am all crazy to slice into mf some of my own projects. Thanks man, you always provide valuable content ❤

  • @KozaKrisz
    @KozaKrisz 3 роки тому +1

    I haven't heard about Zustand before. Thanks!

  • @KLR_OFFICIALS
    @KLR_OFFICIALS 7 місяців тому

    Thank you Amazing demo showing the strength of module federation!

  • @bonarhymetechhub7786
    @bonarhymetechhub7786 2 роки тому +2

    I appreciate the efforts you put into making this video.
    GOD bless you!

  • @AliAbbas-vp4bm
    @AliAbbas-vp4bm 3 роки тому +1

    Great video! Actually all your videos on module federation are great.
    Looking forward to reading your (and Zach’s) book on it

  • @sleepwalkergt
    @sleepwalkergt 3 роки тому +1

    Thanks for good ovwrview. One of options to consider as well - avoid shared state. And make it event driven, using things like custom browser events - to let apps share stuff when needed.

    • @jherr
      @jherr  3 роки тому +3

      IMHO in most cases the most shared state you need is enough user info to show in the header and the JWT. Everything else should be local to the Micro-FE.

  • @danayudelevich2941
    @danayudelevich2941 2 роки тому +1

    Amazing, great demos showing the strength of module federation!

  • @devilop118
    @devilop118 5 днів тому

    Why I'm getting reduxContext null in the host frontend?

  • @chope811
    @chope811 Рік тому +1

    Thanks for the video Jack - very informative 👍

  • @Sadaf_ziya
    @Sadaf_ziya Рік тому

    Great video. Big help for our team. Thanks alot❤

  • @FootballerThe10
    @FootballerThe10 6 місяців тому +1

    Please do a second part where you discuss the solutions for sharing states between apps that are from different frameworks.

  • @DaniloMongelli
    @DaniloMongelli 3 роки тому +1

    The best Dev chan!!! Thank you

  • @bartoshdoesdev7212
    @bartoshdoesdev7212 2 роки тому +1

    Thank you Jack! You have gift to knowledge sharing

  • @willurban837
    @willurban837 2 роки тому +1

    That's great, thank you so much for this video! =)

  • @sijjshawn
    @sijjshawn 3 роки тому +1

    Thanks jack for always bringing some informative videos . Much appreciate ur effort 💌

  • @miguelship3
    @miguelship3 3 місяці тому

    Hey Jack tahnks for the video, I have a question about the create-mf-app project, there is a text saying "These projects are not production complete. They are designed as lightweight projects that can be used to quickly prototype a new feature or library."
    Is this just a lib to build prototypes with mf or is it ok to start a project with this tool? Since create-react-app is deprecated I'm exploring some options and this is really optimal for the microfrontend project I'm starting, but I would like to know if I will face some issues with it in the future

  • @HolySl0w
    @HolySl0w 3 роки тому +1

    this is amazing and so elegant...

  • @failist9570
    @failist9570 3 роки тому +1

    I like your new look!

  • @shinmessiah
    @shinmessiah 3 роки тому +1

    Great and super interesting content!

  • @sumanth3036
    @sumanth3036 2 роки тому +1

    Amazing.. loved it

  • @peigengjiang3021
    @peigengjiang3021 2 роки тому +1

    Hi Jack, thank you so much for this detailed video. I would like to ask a question. The idea of the module federation is the reusability and independently developable of these module federation components. If we reference state from these remote containers, will it impact the idea of reusable and independently developable? Because they will require either store or shell page to use the same state management library in order for the remote container to function. If so, is there a better way to manage states between these remote containers? Thank you very much.

    • @jherr
      @jherr  2 роки тому +1

      My recommendation is to use as little shared state between the modules as possible, often just user identity and the JWT. Using that model you can do everything with just props. But, that being said, there are ways to share state. It's doable, I just wouldn't recommend it. Or at least not recommend sharing large state stores.

  • @mainendra
    @mainendra 3 роки тому +2

    Really good 👍Thank you. How about next video on module federation using vitejs or any other bundler (or mix and match if possible). Also how about using it in production and how to protect it? etc.

    • @thiccboi6211
      @thiccboi6211 3 роки тому

      I dont thnk using the Module federation plugin in Vite would be a good idea for any serious application since its officially supported by the author.

    • @jherr
      @jherr  3 роки тому +1

      I can do the production one. The protection one is simple, it has the same security footprint as a split bundle (federated modules are just JavaScript files and are deployed like any JavaScript file, to an asset store). As for Vite, I can't do Module Federation on that because it doesn't support it.

  • @Ilovepelepenz
    @Ilovepelepenz Рік тому

    How are you getting some recommendations when using terminal commands? I've seen your other videos that it's working on terminal and also on vs code terminal.

  • @Mouni_MahendraNath
    @Mouni_MahendraNath 3 роки тому +1

    Thank you so much 👍🏼🎉🙏⭐

  • @vuluu4066
    @vuluu4066 3 роки тому +1

    Hi Jack. Thanks for sharing. Do you think using single store for a micro frontend application is a good idea? I mean that each micro frontend should has its own store to reduce the coupling.

    • @jherr
      @jherr  3 роки тому +1

      Absolutely. Every micro-fe should manage its own state and have very little state shared with other Micro-FEs. Probably just the user ID and API JWT.

  • @kerrypatrick7702
    @kerrypatrick7702 3 роки тому +2

    Great video! We ran into the same state problem with zustand where two modules couldn't share the same state instance, but we solved it by making the zustand library a shared dependency, like React, instead of adding the self-remote like you did in the video. Is there a disadvantage to our solution?

    • @jherr
      @jherr  3 роки тому +2

      That's fine as well. No disadvantage that I can think of.

    • @NazrulMuhaiminRahmat
      @NazrulMuhaiminRahmat 2 роки тому

      Hey, I like this idea but I didn't know much on state management, I see Zustand can be much simpler with less code to setup, if you can guide me on how to do it same like what Jack was doing at the last section of the video, that would be much appreciated

    • @jherr
      @jherr  2 роки тому +1

      @@NazrulMuhaiminRahmat If you have specific questions about the implementation you can ask them on my Discord server discord.gg/txUYUADr in the #module-federation channel.

  • @svapnilraut4368
    @svapnilraut4368 2 роки тому

    Firstly great work @jherr , thank you for sharing this video, I only have a question on using useEffect to update the context post axios call and sharing the updated context to remote apps, what is happening is it only sharing the default context and not updated context post useEffect axios call.

  • @louiefigz
    @louiefigz 3 роки тому +1

    Hey! Thanks for this info! Very much appreciated and I have one question. When attempting to built this from scratch, I am getting an error similar to “Shared module is not available for eager consumption”.
    I’ve looked at your code and mine and I’m just having trouble finding out what I’m missing.
    I can add a new shared module to your existing code without any issues.
    Have you run into this issue?

    • @jherr
      @jherr  3 роки тому +1

      You need to bootstrap your index.js. So take the contents of index.js and put it in realIndex.js (or whatever). And then in index do `import('./realIndex');`

  • @hansmeyer2
    @hansmeyer2 2 роки тому

    @9:50 ln5 how is it that div is accepting a class prop instead of className?

  • @enmaboya
    @enmaboya 3 роки тому +1

    cool of course, but the value that is passed to the remote application is set in the createContext.
    How do I share the value that I, let's say, get through the api?

    • @jherr
      @jherr  3 роки тому +1

      You have to get the original context so that you can do useContext on it, and that means having the host application, or some shared federated module, manage that context so that both host and remote can get the exact same context. That context could also be in a shared build time library through something like a monorepo.

  • @chinoviteri7139
    @chinoviteri7139 3 роки тому +1

    Thanks for sharing your knowledge. I have a question. Lets just say there are 5 microfrontends and I want to develop a new one. Is it posible for the container app in the remote:{} to have all 5 microfrontends from a deployed url and one from localhost? Or do I have to download all the mfes and running everything in localhost? Thank you in advanced

    • @jherr
      @jherr  3 роки тому

      I'm not quite sure I follow your question. You should add a little more specificity when you post in the #module-federation channel on the Discord channel. Of course, be sure to read the #rules first.

    • @chinoviteri7139
      @chinoviteri7139 3 роки тому

      ​@@jherr sorry about that. Let me try again. In the host/container app webpack config can we have a mix of remote entries from deployed sites and localhost? Something like this
      const devConfig = {
      plugins: [
      new ModuleFederationPlugin({
      name: 'container',
      remotes: {
      // using remoteEntry from deployed URL
      'auth-mf': 'auth@myauthapp.com/remoteEntry.js',
      // using remoteEntry from deployed URL
      'dashboard-mf': 'dashboard@mydashboardapp/remoteEntry.js',
      // using remoteEntry from localshot
      'payments-mf': 'dashboard@localhost:8082/remoteEntry.js'
      }
      I have tried but I get a promise error. The reason I would do something like will be if I have 10 microfrontends and I want to develop a new one, I would download the repo for the container/host and work with localhost to develop a new one. Or do I need to download all the microfrontends and run all of them locally?

    • @jherr
      @jherr  3 роки тому +1

      @@chinoviteri7139 This would be a lot easier to talk through on the Discord server in the #module-federation channel.

  • @shivashankargalla3326
    @shivashankargalla3326 2 роки тому +1

    Hi Jack, impressive stuff as always. I have a question, I am developing a new application with MFE architectural style where we will have more than 5 micro apps all are developing using react and redux toolkit. What is the best way to communicate across 5 micro apps? RxJS/ReduxStore/LeanJS/EventBus/PropsCallback/windowObservable/others?

    • @jherr
      @jherr  2 роки тому +1

      Currently I think the best option is nanostores. The basic store types are agnostic to frameworks. And there are connectors to all the popular frameworks. Of course, I think it's important that the data you share is really limited to the smallest possible amount. For example, just the JWT for service access, and the user identity if that's required.

  • @dtasevski
    @dtasevski 2 роки тому

    Any thoughts on having the context in the remote app, which is then used by the host app? I'm not sure if that's a good idea or not, but I have a use case for it - multiple remote applications using the same context (different instances, tho), so in order to reduce code duplication I was thinking to put the Context code in the shared remote module.

  • @alexsuarez667
    @alexsuarez667 3 роки тому +2

    Hi Jack! Outstanding presentation, as usual, I wonder if you can include NextJS in the Frameworks list?

    • @jherr
      @jherr  3 роки тому +2

      For create-mf-app? To me NextJS is a React framework. And unfortunately, at this time, it doesn't natively support Module Federation.

    • @alexsuarez667
      @alexsuarez667 3 роки тому +1

      @@jherr Thank you so much for the response! Hopefuly lastest versions using webpack 5 can allow this in some point. Thanks again que keep with the great job!

    • @jherr
      @jherr  3 роки тому +1

      @@alexsuarez667 There is a ticket you can thumbs up - github.com/vercel/next.js/issues/16368#issuecomment-1002482125

  • @rorymullan
    @rorymullan 3 роки тому +1

    What is the plugin you used for code suggestion/ auto complete in VSCode. I know you told us but I didn't write it down at the time and can't find where you mention it. It looks fantastic. Excellent video. Thank you.

    • @rorymullan
      @rorymullan 3 роки тому

      GitHub Copilot - I see it's been asked. Thank you.

    • @jherr
      @jherr  3 роки тому +1

      GitHub Copilot.

  • @sharadbhor88
    @sharadbhor88 2 роки тому +1

    Hi Jack,
    I have authorization data using api call in my host app.
    I am including my remote app components into host app, and running my host app then state sharing is working fine.
    But when I individually run my remote app then Authorization data becomes undefined.
    Please suggest how I can fix this.
    Thanks in advance.

    • @jherr
      @jherr  2 роки тому +1

      Feel free to ask your question on the BCC Discord server discord.gg/BTSDq5xF but please read and follow the #rules first.

    • @sharadbhor88
      @sharadbhor88 2 роки тому

      @@jherr i have posted my question.

  • @josevl4125
    @josevl4125 Рік тому

    hi great video. Could you made a video sharing the state between microfrontnds with react-query

  • @MayOcampo
    @MayOcampo Рік тому

    Great video, thanks!! Question: Is there a way to use the "Redux" approach to share store between an Angular MFE and a React MFE? understanding that Angular uses NgRx instead of redux library directly. Thank you so much in advance

    • @uome2k7
      @uome2k7 Рік тому

      seeing some content with MFEs with mixture of frameworks or even languages (angular, react, flask, django, svelte etc) would definitely be helpful but I think Jack is mainly a React guy. I was able to find some material on using React context in Angular though, so hopefully you have been able to as well. The module federation plugin should make this all fairly straightforward, the main difference being in how each implements the use of the shared store.

  • @ShaggyKris
    @ShaggyKris 3 роки тому +1

    Woah, what is that plugin you have for your terminal? How did you customized it what way?

    • @jherr
      @jherr  3 роки тому +1

      That's oh-my-posh. And the theme is powerlevel10k_rainbow. And the font is SpaceMono NF.

  • @hk_build
    @hk_build 2 роки тому

    Great content 👍👍
    What if I want to expose whole redux store from remote app how to do that....??
    Since I want expose whole remote app along with store
    currently am only able to expose static hello world but not component which is connected to store...

  • @muratasarslan2359
    @muratasarslan2359 3 роки тому +1

    Awesome 😎 Thank you Jack.
    What do you think about using Apollo Client cache in module federation?

    • @jherr
      @jherr  3 роки тому

      Should work just fine.

  • @pradeepgorai5885
    @pradeepgorai5885 3 роки тому +1

    Thank you Jack. Nice video and good explanation. I have one question. Can we do state management between Angular and react component?

    • @jherr
      @jherr  3 роки тому

      Yeah, you just have to pick a state sharing library that works across both. One suggestion would be RxJS.

    • @pradeepgorai5885
      @pradeepgorai5885 3 роки тому

      @@jherr Thanks Jack for quick reply. Could you please share some example explaining the same or if you have already any video created will be helpful for me.

    • @jherr
      @jherr  3 роки тому

      @@pradeepgorai5885 I don't have any examples of that off the shelf or in a video. Sorry.

  • @Unnikrishnand-uberccooluk
    @Unnikrishnand-uberccooluk 2 роки тому

    @Jack Herrington Awesome !! by the way is there any way to have a shared store like this along with a isolated store ? for example nav has its own exclusive store and host has a centralized store which is shared between both nav and host ?

    • @uome2k7
      @uome2k7 Рік тому

      There should be no reason why this wouldn't work assuming the nav exclusive store was completely independent state from the centralized store. You can have as many providers as you desire within an application. Likewise, I dont see reason why you couldnt have multiple centralized stores being present from the 'store" app or from any number of other store apps. Obviously you would need to give them different names when you specify the remote.

  • @somewonderfulguy
    @somewonderfulguy 9 місяців тому

    Good for module federation that it can have shared the same instance. I wonder how to manage shared state in monorepo. It might be needed to share such things as theme, lang or other config between apps/modules.
    The only way I see this day is unfortunately is not very nice, but rather complex. You pass as prop object instance(s) and then you create in sub-application(s)/module(s) a context to share it through all app.
    I guess I'm going to try what I've wrote in Turborepo soon.

  • @pramoddevaraj82
    @pramoddevaraj82 10 місяців тому

    Hello Jack, im trying to implement this in next js 13. But the problem is shared Store is not in sync. ie host app has updated state and trying to fetch that store in MFE and it has initial state instead of updated state. Please let me know if I'm missing anything. Also added zustand inside shared in module federation plugin

    • @jherr
      @jherr  10 місяців тому

      Are you talking about two different deployed applications? Module Federation won't synchronize a store between two different sites. Module Federation shares code, not state.

  • @varunc1231
    @varunc1231 3 роки тому +1

    Great video! what shell and plugin are you using for your terminal?

    • @jherr
      @jherr  3 роки тому +2

      oh-my-posh with a theme of powerlevel10k_rainbow

    • @varunc1231
      @varunc1231 3 роки тому

      @@jherr thanks! Looks cool

  • @mortezasabihi5159
    @mortezasabihi5159 3 роки тому +1

    Thank you Jack.
    I'm looking for a way to use module federation in nextjs ssr/ssg applications. do u have any plan to create a video about this?

    • @jherr
      @jherr  3 роки тому +1

      When it's out, and apparently it is, so I nee to do some research here. ;)

    • @ganaraj
      @ganaraj 3 роки тому

      @@jherr Eagerly awaiting this - please do. Even if you can do a short video about framing the general problems of why its not as simple as doing 'create-mf-app' that would be great.

  • @nightmoves
    @nightmoves 2 роки тому

    How would you do the useStore hook if the redux store is split into different slices? In this video there is only a single slice. I am wondering about how I should approach splitting up my app which has multiple slices. Each slice exposes actions and a reducer. So should I move the useStore and provider exports into a different file and import all actions in that file? Or is there a cleaner way to do this?

    • @jherr
      @jherr  2 роки тому

      You just have multiple hooks. One per slice.

  • @kwang3297
    @kwang3297 Рік тому

    Hi Jack, this was a super helpful video! Would it also work to pull the store out into a separate app using any of the other options, not just Redux?

    • @jherr
      @jherr  Рік тому

      IMHO, the primary using/managing application should own the very small shared store that it exports for data that it shares with other applications.

  • @a-c-sreedhar-reddy
    @a-c-sreedhar-reddy 3 роки тому +2

    Hi, How can we import modules via module federation in a typesafe way?

    • @jherr
      @jherr  3 роки тому +2

      I'll be covering that soon. It's not straightforward because, as with NPM modules, the built federated modules are just JavaScript. So you need to get the TypeScript types around through a build time process. In the meantime have a look at ua-cam.com/video/FTGWIH4RlHg/v-deo.html

  • @ozzolim
    @ozzolim 2 роки тому

    Hello Jack, nice content. I have tested your solution and i would like to know why state is not reflected into the nav app when we click on add to cart button? i see that the dispatch goes to the store app but each app has his own values. Can we really have one store app that renders automatically our components even if they are not plugged into another app?

    • @jherr
      @jherr  2 роки тому

      Oh, because those are two separately deployed applications that are sharing code, but not running state.

    • @ozzolim
      @ozzolim 2 роки тому

      @@jherr thank you for your quickly response. Is there a way that we can share running state?

    • @jherr
      @jherr  2 роки тому

      @@ozzolim You'd have to use traditional state sharing mechanisms. Rest APIs, GraphQL APIs, service APIs like Firebase or Supabase. Module Federation shares code. That's all. It doesn't handle routing, or state management, or any of that. It's just about sharing code.

  • @itamar82
    @itamar82 3 роки тому +1

    How would you handle breaking changes between state or header props?

    • @jherr
      @jherr  3 роки тому +1

      Error Boundaries at runtime. Code Reviews before that. And if you are using TypeScript then using a build time NPM library of "contract" types to enforce the props and state.

  • @peripona
    @peripona 2 роки тому +1

    Crisp Thanks

  • @MrAtul2011
    @MrAtul2011 Рік тому

    hi jack..if we use redux toolkit inside both remote and host.. and if we import host inside remote then host state through redux toolkit doesnot work!

    • @jherr
      @jherr  Рік тому +1

      IMHO, don't use Redux for MFEs.

  • @quocvunguyen688
    @quocvunguyen688 2 роки тому

    HI Jack, I wonder how 2 MFE apps could share the same store in the Redux example. As I know that Store MFE app just pass to nav and host the js code and nav (or host) will use this js code to create its store variable (I mean store in nav and host will have the difference memory address) so they can't reference to the same store, fix my if i'm wrong. Could you explain it?

    • @jherr
      @jherr  2 роки тому

      I recommend against having MFEs share large Redux stores. That creates a lot of inter-dependence.

  • @prathapreddy244
    @prathapreddy244 2 роки тому

    Hi @Jack, is there a way to share context from nav to Host ?

    • @jherr
      @jherr  2 роки тому +1

      React Context works just fine. The trick is in getting to the right context object. So one of the remotes needs to share the context so the other remotes can consume it because it has to be the EXACT SAME OBJECT not the exact same code.
      Another option is to put it in a shared NPM library. And make sure that all the projects have it in `shared` and have the right version and have it marked as a singleton. The plus with that approach is that it's good for TypeScript.

  • @dattaghadage-r2u
    @dattaghadage-r2u 5 місяців тому

    in nested routing when i refresh the page then page looking blabk white page???

  • @Gil707
    @Gil707 2 роки тому

    Is it possible to use redux store not only in separate app, but also in another module app (host, checkout...). I mean merge local store from host for example with global store from store app in one store into the provider?

    • @jherr
      @jherr  2 роки тому

      It is possible but I wouldn't recommend it it. IMHO the state of micro-frontends should be self-contained.

    • @Gil707
      @Gil707 2 роки тому

      Agreed,..but i have some global store in entry of all apps and it has some context data (dates, user), each module wonder to use these properties, (and able to change dates for example), and also has own store. Each module should have some specific data, but allow to read and change some global parameters...

    • @jherr
      @jherr  2 роки тому +1

      @@Gil707 Cool, so why do you need to merge the local and global scope? Just use the local scope when it's something specific to the MFE, and global when it's that small amount of data you need globally.

  • @phucluu5919
    @phucluu5919 2 роки тому +1

    The content is very good but please check it carefully. The example in zustand state count doesn't change, and it doesn't seem to work well

    • @phucluu5919
      @phucluu5919 2 роки тому

      Exactly, the state count in the nav is not synchronized with that of the host. Please, can you check it again?

  • @nabloler
    @nabloler 3 роки тому +1

    Nice one!
    What's the terminal theme?

    • @jherr
      @jherr  3 роки тому +2

      oh-my-posh with a theme of powerlevel10k_rainbow

  • @CuriousAvinashSingh
    @CuriousAvinashSingh Рік тому

    Is it possible to fetch data from header mfe to host mfe? If yes, then how?

  • @poria3547
    @poria3547 3 роки тому +1

    Thank you for the nice Video. What is your VSCode's theme?

    • @jherr
      @jherr  3 роки тому

      Night Wolf [black] and operator mono.

  • @bastiboydiaz7
    @bastiboydiaz7 10 місяців тому

    why did you import react even in component didn't use it, like header?

  • @shahzaibimran2662
    @shahzaibimran2662 3 роки тому

    Is this possible to use redux in nextjs V12.
    As I have implemented but it stopped the SSR.

  • @hitendrapatil9991
    @hitendrapatil9991 2 роки тому

    I believe this content and awesome explanation is not even going to be provided in a paid course. 👌😂
    Thanks Jack 🙌

  • @gavinbonneville2993
    @gavinbonneville2993 3 роки тому +1

    Just got v1.4 of your book two weeks ago. Can you reply with the Revision History for v2.0?

    • @jherr
      @jherr  3 роки тому

      v2.0.0 - 12/26/2021: Massive content overhaul and upgrade
      Updated all the code for all chapters
      Completely rewrote the introductory chapter
      Added a new chapter on using Create React App
      Added a new chapter on deployment
      Added a new chapter on non-React frameworks
      Added more state managers to the state management chapter
      Rewrote the code and copy for the CMS chapter
      Rewrote the code and copy for the Full Site Federation chapter
      Migrated all the examples to create-mf-app
      Cleaned up many inconsistencies across the chapters
      Re-structured the book to be more easily updatable

  • @MrAtul2011
    @MrAtul2011 Рік тому

    hi jack, how we can expose mixins functions in scss files across MFE ?. I am not able to expose them.

    • @jherr
      @jherr  Рік тому

      Module Federation in webpack doesn't do CSS.

  • @vasiloconnell281
    @vasiloconnell281 2 роки тому +1

    The best

  • @cintron3d
    @cintron3d 3 роки тому +1

    Have you looked at Piral?
    MF is cool, but I think I like Piral better for the bundler independence since I like Vite better than webpack. Also type safety.

    • @jherr
      @jherr  3 роки тому +1

      Have you looked at Single-SPA?

    • @cintron3d
      @cintron3d 3 роки тому

      @@jherr I have actually, I see Single-Spa as more comparable to Module Federation (both are good at helping you load JS modules), while Piral is a more "batteries included" kind of thing.
      I see now that my argument for Vite is nill. I really brought it up because my team and I are in the process of evaluating Piral against our home grown Single-Spa based architecture. I don't want to be locked in to webpack when Vite looks so much better, and I like how a lot of our current pain points are solved problems in Piral. Not that we couldn't solve them in MF or SingleSpa too.
      I'm just curious if you have any experience with Piral and if there are any red-flags you see with it?

    • @jherr
      @jherr  3 роки тому

      @@cintron3d I checked Piral out a lonnng time ago, haven't looked at it since. Sounds like I should give it another look. Until I do that I don't think I could give you an honest answer one way or the other on it.

  • @techknowledgebase4504
    @techknowledgebase4504 3 роки тому +1

    Great. Can we use MF with Nextjs? Can you do same nextjs

    • @jherr
      @jherr  3 роки тому +1

      You can do NextJS client side with a pay for extension. And I think zack is coming out with an SSR plug-in soon.

    • @sijjshawn
      @sijjshawn 3 роки тому +1

      @@jherr Its already out there Jack but with a paid version :-)

    • @jherr
      @jherr  3 роки тому

      @@sijjshawn Right, client client side version is out there as a paid for plugin. I haven't seen an SSR extension. If you have, please provide a link.

  • @androidgeeking
    @androidgeeking 3 роки тому +1

    Is Practical Module Federation
    an ebook?

  • @yepyep5927
    @yepyep5927 2 роки тому

    I'm having problems with redux when dispatching an action (which contains an API call) in a useEffect hooks which depends of a state inside my store. Infinite loop. I'm exporting my global state (useSelector(state => state)) and my useDispatch from the useStore custom hooks

    • @jherr
      @jherr  2 роки тому

      You should jump into the discord server and post your question there. But be sure to read the #rules first so that your question is structured in a way where it can be answered easily.

    • @yepyep5927
      @yepyep5927 2 роки тому

      @@jherr Thanks! Didn't know about it

  • @ness-ee
    @ness-ee Рік тому

    I think what’s stopping me from using this over a monorepo is that it doesn’t have semver

  • @OCEMTechZone
    @OCEMTechZone 2 місяці тому

    🎉

  • @jpmc4715
    @jpmc4715 2 роки тому +1

    It's magic

  • @redda2
    @redda2 2 роки тому

    Examples with Angular plz

    • @jherr
      @jherr  2 роки тому

      ua-cam.com/video/EzJF0IUoYhQ/v-deo.html

  • @onlywilddrift9506
    @onlywilddrift9506 2 роки тому

    gold

  • @CODEWITHSPEED
    @CODEWITHSPEED 3 роки тому +1

    Can you be my coach

  • @ИльяИваник-ф8ф
    @ИльяИваник-ф8ф Рік тому

    What if you need a real-world application? With FSD, RTK Query and other complicated things. Your approach works only on this primitive example.