Closed ArekChr closed 1 year ago
It's currently not possible to perform hot-module replacement of the mini-app embedded into the host-app. Two dev servers would need to communicate with each other and it's a very complex problem
if there is no HMR, what's the suggested way to just run mini apps??
Hi @chakravarthi-bb
To mitigate the issue with HMR, you can run the dashboard
mini-app in standalone mode. You can do that by running:
# starts dev-server for dashboard mini-app in standalone mode
yarn start:standalone:dashboard
and then run
yarn run:dashboard:ios
# or
yarn run:dashboard:android
Only dashboard
mini-app includes android & ios directories needed to run the app in standalone mode. You could add them to the rest of the mini-apps as well and have the same experience.
Description
While testing the app, I encountered an issue with hot reloading in mini app when the host server is started.
@andrewworld Do you know the reason for this limitation?
Reproducible Demo
yarn start:host