Skip to content

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

@chethan1095

Description

@chethan1095

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions