For some time now, when im running my react-native projects in vscode and I switch between files in the editor, the project fast refreshes on its own, without me pressing ctrl+s. This will only happen when the file I switch to inside the editor has not been opened before during the session. I have done some research that suggested there might be a cloud service storing/syncing the files. But that doesnt seem to be the case because i have already checked my Google drive and nothing from my projects are there.. have never opened dropBox before, and I dont have an iCloud account on this windows PC. Furthermore I have tried deleting the project and recloning it with no luck... this is a very annoying issue since sometimes I will be working on a screen deep inside navigation and if I open a file I haven't recently used it will take me all the way back to home screen. I suspect vscode is causing the problem, or maybe my file explorer is messed up.. any suggestions on what I should try? (running windows 10)
React-native projects are refreshing on their own when switching between files in Vscode editor
1.2k views Asked by user6554254 At
2
There are 2 answers
0
404.html
On
What worked for me was installing Watchman:
https://facebook.github.io/watchman/docs/install.html
I found this solution on Reddit.
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in VISUAL-STUDIO-CODE
- Is there a way to prevent vscode from forwarding ssh agent to remote dev container?
- flutter Null check error: did not show file and line number
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- trouble with creating a project for Pymakr in vscode
- Compiling c++ code by VS Code is always blocked by clang-tidy error 'Error running 'clang-tidy'
- Disable typescript in VS Code
- couldn't sign in visual studio code
- I can't add text to "Message" in VS Code when committing to Git
- Cannot type single backtick in VSCode
- WebScraping doesnt work, even without error
- Visual Studio Code keeps discovering python interpreters forever and vscode-server on remote is busy 100%
- vscode uses different cocoapods version when running a task
- Live server extension in VS Code works in background but do not pop the web browser
- How to recover deleted files from create vite react project
- Autocomplete not working for apache spark in java vscode
Related Questions in REFRESH
- Automate the update of a pivot table in Excel via Power Automate Web
- Stream data from server component in NextJS 14 App Router
- Power automate dataflow refresh after mail recieved
- Unable to set up scheduled refresh in powerBI Service when Data is imported into PowerBI from S3 using R script
- Error when Refreshing Power BI Gateway - Mashup error
- Binding to a calculated property of a BindableProperty from code behind
- Refresh array in desktop app after actions in web-site
- How I refresh (update) a parameter in a time intervals using [spring-boot and ajax]
- How to enable automatic background refresh in Excel with closed workbook when connected to external database, such as Oracle?
- Oracle materialized view refresh on two different schedules
- How can I force a DataGridView to redraw or refresh after any front end changes to the data?
- Problem understanding Python's turtle refreshing after using a tracer(0) and an update
- Power BI service refreshing fine but desktop version fails
- PowerBi refreshing issue (MySQL)
- Refresh a certain sheet associated with multiple connections
Related Questions in MICROSOFT-FILE-EXPLORER
- Setting "sync" icons in file explorer
- Windows File Explorer folder icon displaying incorrect
- Add a button to open "File Explorer"
- Changing the locations of shell folders from registry paths is not taking effect
- PowerShell script works in ISE but unexpectedly exits when invoked via File Explorer's shortcut menu
- Hiding a Directory Junction in File Explorer on Windows Via Command Line
- Enumerating internals of a multi-tab shell window in Windows 11
- How to correctly have or extract the created datetime for a recorded video for a smart CCTV camera (TP Link - Tapo TC70)?
- File explorer (windows) keeps crashing after enabling and disabling Hyper-v
- Opening multiple folders in the same File Explorer window?
- Get last used path from explorer in powershell
- How to connect a web directory on windows explorer
- Managing R-created files (that are invisible) in Windows File Explorer
- WIndows 10 opens directories and drives with VS Code when using double click instead of using the File Explorer
- C# — How to collect a selection of files in the active window of Windows File Explorer?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I wanted to add this as a comment, but I lack the reputation. I experienced this recently after upgrading to the latest React Native version. I noticed that this doesn't just apply to VS Code; any file editor (Notepad++ or the default Win. notepad) would trigger a reload but only while the Metro server was running.
Solution: Append
--reset-cachewhen starting your metro server. E.g.You're golden if it says "warning: the transform cache was reset." in the terminal.