()
| 88 | * @return {string} |
| 89 | */ |
| 90 | const getInternalLifecycleState = (): string => { |
| 91 | if (document.visibilityState === HIDDEN) { |
| 92 | return HIDDEN; |
| 93 | } |
| 94 | if (document.hasFocus()) { |
| 95 | return ACTIVE; |
| 96 | } |
| 97 | return PASSIVE; |
| 98 | }; |
| 99 | |
| 100 | export const getCurrentLifecycleState = (): string => { |
| 101 | if (wasActive) { |
no outgoing calls
no test coverage detected