-
-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear RND interval before debugger window close
to avoid the interval still proceeding when app getting status of `Runtime is not ready for debugging` error note that we can't avoid it if the user close RN packager directly
- Loading branch information
Showing
5 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
export const SET_DEBUGGER_LOCATION = 'SET_DEBUGGER_LOCATION'; | ||
export const SET_DEBUGGER_STATUS = 'SET_DEBUGGER_STATUS'; | ||
export const SET_DEBUGGER_WORKER = 'SET_DEBUGGER_WORKER'; | ||
export const BEFORE_WINDOW_CLOSE = 'BEFORE_WINDOW_CLOSE'; | ||
|
||
export const setDebuggerLocation = loc => | ||
({ | ||
type: SET_DEBUGGER_LOCATION, | ||
loc, | ||
}); | ||
export const setDebuggerLocation = loc => ({ | ||
type: SET_DEBUGGER_LOCATION, | ||
loc, | ||
}); | ||
|
||
export const setDebuggerStatus = (status) => | ||
({ | ||
type: SET_DEBUGGER_STATUS, | ||
status, | ||
}); | ||
export const setDebuggerStatus = status => ({ | ||
type: SET_DEBUGGER_STATUS, | ||
status, | ||
}); | ||
|
||
export const setDebuggerWorker = (worker, status) => | ||
({ | ||
type: SET_DEBUGGER_WORKER, | ||
worker, | ||
status, | ||
}); | ||
export const setDebuggerWorker = (worker, status) => ({ | ||
type: SET_DEBUGGER_WORKER, | ||
worker, | ||
status, | ||
}); | ||
|
||
export const beforeWindowClose = () => ({ | ||
type: BEFORE_WINDOW_CLOSE, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters