NativeScript / nx

NativeScript for Nx.
Other
61 stars 15 forks source link

[iOS] Crash when using HMR (and possibly ListView) #61

Open fpaaske opened 1 year ago

fpaaske commented 1 year ago

I'm struggling with crashes when using HMR and changing code in the libs section of the NX workspace. I have more details about the issue here https://github.com/NativeScript/NativeScript/issues/10107.

I'm wondering if this has something to do with the combination of NativeScript+NX (using this repo), or something else.

Basically I have this setup:

apps
  app1 -> home -> contactmodule
  app2 -> contactmodule
libs
  shared
    contactmodule -> contactlist -> contactdetails

If I do nx run app1:ios it will run ns debug ios --force. It seems to me as if I change the code under libs after it has been displayed (navigated to, perhaps via a list), the app will crash on the next navigation to contactdetails.

Initially I thought this had something to do with ListView, but I'm leaning more towards bad HMR update of code from libs. Do you guys have any idea?