Variables not updating with HMR
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- android, tailwindcss
- Ambito
- frontend, mobile-dev, tooling
Direzione di ricerca
Inizia riproducendo il problema nel progetto ns-tailwind-4-examples con una sessione Android ns run o ns debug e HMR abilitato. Confronta la modifica da text-sky-500 a text-amber-500 con la stessa modifica usando --no-hmr; il lavoro è completato quando le variabili dei colori del tema vengono aggiornate senza riavviare l’app.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
It seems like theme variables do not update if the code is updated during a ns run or ns debug session with HMR enabled (as it is by default). I only tested it on Android on a Windows machine with nativescript 8.9.3, @nativescript/core 8.9.7, @nativescript/android 8.9.1, @nativescript/tailwind 4.0.4, and tailwindcss 4.1.13.
How to reproduce
For example, clone ns-tailwind-4-examples, pick any example/framework, and run it with ns run android or ns debug android. Update the code for the home page replacing text-sky-500 with text-amber-500 and see the color disappear.
Notes
Notably, if run with --no-hmr (i.e. the app restarts at each change), theme variables are reloaded correctly.
I believe it is an issue with variables because, for example, updating a spacing class to an arbitrary size (e.g. mx-2 to mx-123) works.
- Lingua principale
- JavaScript
- Stelle
- 161
- Fork
- 29
- Merge medio
- 1h 39m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NativeScript/tailwind
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
NativeScript/tailwind#211 · 1 commento · 2 reazioni ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 55/100
NativeScript/tailwind#197 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
NativeScript/tailwind#193 · 3 commenti ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
NativeScript/tailwind#188 · 4 commenti ·
-
dark: not working Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
NativeScript/tailwind#187 · 14 commenti ·
Tutte le issue di NativeScript/tailwind
Issue simili
-
bug customer-eng Durable Agents Inngest status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
optimization optimization:agents-md-curator
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/OrgExplorer#253 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100