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

Question: Reload the module if there is some change without refreshing the window #48

Open
chethan1095 opened this issue Mar 28, 2024 · 0 comments

Comments

@chethan1095
Copy link

chethan1095 commented Mar 28, 2024

Hi,
I need to reload the application module without refreshing the page.
For Ex. If I run all the application at first and later when I stopped any one of the application and when I redirect to that path its should show module not found which I am getting only if I refresh the page I need the page to get updated without refreshing the window.

const module = await loadRemoteModule({
         remoteEntry: 'http://localhost:4205/remoteEntry.js',
         remoteName: 'encrypt',
         exposedModule: './Module'
       });

// Trigger initialization of federated module when the route is navigated to

      initFederation('/assets/mf.manifest.json')
        .catch(err => console.error(err))
        .then(_res => {
          console.log(_res);              
          import('../bootstrap')
        })

.catch(err => console.error(err));
I tried with loading remote module and also initFederation when route is navigated but its not updating

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

No branches or pull requests

1 participant