NativeScript / NativeScript/tailwind
Variables not updating with HMR
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 161
- フォーク
- 29
- 平均マージ
- 1時間 39分
- マージ済み PR(30日)
- 1
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、HMRを有効にしたAndroid ns runまたはns debugセッションで、ns-tailwind-4-examplesプロジェクトの問題を再現します。text-sky-500をtext-amber-500に変更した場合と、同じ変更を--no-hmrで行った場合を比較します。アプリを再起動せずにテーマの色変数が更新されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, tailwindcss
- 領域
- frontend, mobile-dev, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100