I'm trying to implement Code Splitting in a React Native app. Currently I managed to load multiple bundles in Android both in packager mode and in production mode.
However, on iOS I'm facing the following issue:Cannot initialize hmrClient twice
.I'm trying to load the additional bundles using [bridge.batchedBridge executeSourceCode]
which works in production mode but throws when using the packager.
When looking at the implementation of executeSourceCode
I see that it indeed calls setupHMRClientWithBundleURL
without checking if it was already initialized.
Is there any way to overcome this issue?