NativeScript / NativeScript/nx

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

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
68
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked NativeScript issue and reproducing the setup with nx run app1:ios, which runs ns debug ios --force. Focus on changes under the libs section, especially navigation from contactlist to contactdetails after HMR updates. Done means changing shared library code and navigating to contactdetails no longer crashes the iOS app.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.