NativeScript / NativeScript/nx
[iOS] Crash when using HMR (and possibly ListView)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 68
- Forks
- 15
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das verlinkte NativeScript-Issue zu lesen und das Setup mit nx run app1:ios nachzustellen, wodurch ns debug ios --force ausgeführt wird. Konzentriere dich auf Änderungen unter dem Abschnitt libs, insbesondere auf die Navigation von contactlist zu contactdetails nach HMR-Updates. Als erledigt gilt die Aufgabe, wenn das Ändern von Code in einer gemeinsam genutzten Bibliothek und das Navigieren zu contactdetails die iOS-App nicht mehr zum Absturz bringt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ios, typescript
- Bereich
- mobile-dev, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100