Skip to content

Should I need to set the "Debug server host & port for device" on android in or to do Lazy component/bundle loading? #46

Description

@DaveWelling

Ask your Question

I have some components lazy loading using react.lazy() and react.Suspense. This works fine in the browser, but when I port the component code to react native and use nativepack/repack on my Android device, it fails with a network error trying to reach localhost/127.0.0.1:54571. Then it follows immediately with an error pointing to the bundle corresponding to the lazy loaded component. That looked suspicious to me so I went to the debug menu for the device application and changed the 'Debug server host & port for device" to be my [dev machine local external IP address]:54571 (e.g. 192.168.12.103:54571).
This worked, but is not documented as a necessary step in the instructions, so I was wondering if that is the intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions