Title: Variables not updating with HMR · Issue #200 · NativeScript/tailwind · GitHub
Open Graph Title: Variables not updating with HMR · Issue #200 · NativeScript/tailwind
X Title: Variables not updating with HMR · Issue #200 · NativeScript/tailwind
Description: 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...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/NativeScript/tailwind/issues/200
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Variables not updating with HMR","articleBody":"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.\n\n### How to reproduce\n\nFor 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.\n\n### Notes\n\nNotably, if run with `--no-hmr` (i.e. the app restarts at each change), theme variables are reloaded correctly.\n\nI 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.","author":{"url":"https://github.com/DamianoMagrini","@type":"Person","name":"DamianoMagrini"},"datePublished":"2025-09-06T09:12:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/200/tailwind/issues/200"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7a7724c-a458-15f1-0a1c-1af455e6f237 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D562:305521:4161B4D:59B01EA:6980CDDD |
| html-safe-nonce | 389e3e37e4ca4ff7ccc582f78c61c7150d011bfe3dbe233b1565f48e3adf9462 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTYyOjMwNTUyMTo0MTYxQjREOjU5QjAxRUE6Njk4MENEREQiLCJ2aXNpdG9yX2lkIjoiMzA3NDQ5MTc2NDM5MjkwNjIwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f45690e475590025fd77d5e08ce768aaefe988f6fbcfcbaef214756a1ccbd449 |
| hovercard-subject-tag | issue:3389729873 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/tailwind/200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d51d812778bfb1faa438bd03eeddaaea634bf10363a7d4fb6a0b778496c6c37b/NativeScript/tailwind/issues/200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d51d812778bfb1faa438bd03eeddaaea634bf10363a7d4fb6a0b778496c6c37b/NativeScript/tailwind/issues/200 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DamianoMagrini |
| hostname | github.com |
| expected-hostname | github.com |
| None | c940d5e308643c0003d2824389ea8281bcaae0a9a0d07438e3fb5e0bdc4fef12 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/tailwind git https://github.com/NativeScript/tailwind.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 137405081 |
| octolytics-dimension-repository_nwo | NativeScript/tailwind |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137405081 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/tailwind |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bb3d0fe9b8e408797775c5db420b1ee5ff06e4d0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width