Skip to content

Conversation

@jwajgelt
Copy link
Contributor

Changes the behaviour of DeviceNameCache so that if the model list fetch fails, the extension won't attempt to refetch it.
This should prevent making unnecessary request and spamming the IDE logs with errors when e.g. the machine doesn't have Internet access.

How Has This Been Tested:

  • open Radon in Radon
  • connect a physical Android device
  • disconnect from the Internet
  • remove the ~/Library/Application Support/Code/User/globalStorage/swmansion.react-native-ide/RNIDE_device_models.json file
  • verify "Error fetching device models: fetch failed" isn't logged more than once

How Has This Change Been Documented:

Internal

@jwajgelt jwajgelt requested a review from filip131311 December 12, 2025 13:39
@jwajgelt jwajgelt self-assigned this Dec 12, 2025
@vercel
Copy link

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
radon-ide Ready Ready Preview Comment Dec 12, 2025 1:39pm

Copy link
Collaborator

@filip131311 filip131311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🇮🇹

@jwajgelt jwajgelt merged commit ad85513 into main Dec 12, 2025
9 checks passed
@jwajgelt jwajgelt deleted the @jwajgelt/dont_refetch_android_models_on_fail branch December 12, 2025 13:44
jwajgelt added a commit that referenced this pull request Dec 12, 2025
Changes the behaviour of `DeviceNameCache` so that if the model list
fetch fails, the extension won't attempt to refetch it.
This should prevent making unnecessary request and spamming the IDE logs
with errors when e.g. the machine doesn't have Internet access.

### How Has This Been Tested: 
- open Radon in Radon
- connect a physical Android device
- disconnect from the Internet
- remove the `~/Library/Application
Support/Code/User/globalStorage/swmansion.react-native-ide/RNIDE_device_models.json`
file
- verify "Error fetching device models: fetch failed" isn't logged more
than once

### How Has This Change Been Documented:
Internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants