Skip to content

Commit 3988b55

Browse files
authored
isIntialized fix (#96)
* isIntialized fix * changelog entry for isinitialized
1 parent ceee9a6 commit 3988b55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 22.02.3
22
* User profile added option to send bulk data in single request instead of individual request
3+
* Fixed isInitialized variable reset on hot reload
34
* Underlying android SDK version is 22.02.3
45
* Underlying iOS SDK version is 22.06.1
56

Countly.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ Countly.init = async function(serverUrl, appKey, deviceId){
4848

4949
Countly.isInitialized = async function(){
5050
// returns a promise
51-
return await CountlyReactNative.isInitialized();
51+
_isInitialized = await CountlyReactNative.isInitialized();
52+
return _isInitialized;
5253
}
5354

5455
Countly.hasBeenCalledOnStart = function(){

0 commit comments

Comments
 (0)