esoftplay 0.0.129-d → 0.0.129-e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,8 +6,8 @@ import useGlobalState from 'esoftplay/global';
6
6
  import { NativeModules, Platform } from 'react-native';
7
7
 
8
8
 
9
- const state = useGlobalState("id", { persistKey: 'lib_locale_lang' })
10
- const lang = useGlobalState({}, { persistKey: 'lib_locale_lang_data', inFile: true })
9
+ const state = useGlobalState("id", { persistKey: 'lib_locale_lang', loadOnInit: true })
10
+ const lang = useGlobalState({}, { persistKey: 'lib_locale_lang_data', inFile: true, loadOnInit: true })
11
11
 
12
12
  export default class m {
13
13
 
@@ -19,7 +19,7 @@ export interface LibUtilsDate {
19
19
 
20
20
  export type LibUtilsTravelMode = 'driving' | 'walking'
21
21
  let installationIdDefault
22
- const installationId = useGlobalState(installationIdDefault, { persistKey: 'deviceId' })
22
+ const installationId = useGlobalState(installationIdDefault, { persistKey: 'deviceId', loadOnInit: true })
23
23
  const cache = useGlobalState<any>({ inDebounce: undefined })
24
24
  export default class eutils {
25
25
 
@@ -12,7 +12,7 @@ import Constants from 'expo-constants';
12
12
  import * as Notifications from 'expo-notifications';
13
13
  import { Platform } from 'react-native';
14
14
 
15
- const state = useGlobalState(null, { persistKey: "user" })
15
+ const state = useGlobalState(null, { persistKey: "user", loadOnInit: true })
16
16
 
17
17
  export default class m {
18
18
  static state(): useGlobalReturn<any> {
@@ -53,7 +53,7 @@ function setFonts(): Promise<void> {
53
53
  }
54
54
 
55
55
 
56
- const route = useGlobalState<any>(undefined, { persistKey: 'user_index_routes_initial', inFile: true })
56
+ const route = useGlobalState<any>(undefined, { persistKey: 'user_index_routes_initial', inFile: true, loadOnInit: true })
57
57
  export default function m(props: UserIndexProps): any {
58
58
  const [langId] = LibLocale.state().useState()
59
59
  moment().locale(langId)
@@ -28,7 +28,7 @@ const initState = {
28
28
  unread: 0
29
29
  };
30
30
 
31
- const state = useGlobalState<any>(initState, { persistKey: "user_notification_data", isUserData: true })
31
+ const state = useGlobalState<any>(initState, { persistKey: "user_notification_data", isUserData: true, loadOnInit: true })
32
32
  class m extends LibComponent<UserNotificationProps, UserNotificationState> {
33
33
 
34
34
  static state(): useGlobalReturn<any> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.129-d",
3
+ "version": "0.0.129-e",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",