@etsoo/react 1.3.55 → 1.3.56

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.
@@ -1,5 +1,4 @@
1
1
  import { CoreApp, createClient } from '@etsoo/appscript';
2
- import { Utils } from '@etsoo/shared';
3
2
  import React from 'react';
4
3
  import { NotifierMU } from '../mu/NotifierMU';
5
4
  import { ProgressCount } from '../mu/ProgressCount';
@@ -211,15 +210,10 @@ export class ReactApp extends CoreApp {
211
210
  * @param keep Keep in local storage or not
212
211
  */
213
212
  userLogin(user, refreshToken, keep) {
214
- // Changed
215
- const dataChanged = !this.authorized ||
216
- this.userData == null ||
217
- !Utils.objectEqual(this.userData, user, ['seconds', 'token']);
218
213
  // Super call, set token
219
214
  super.userLogin(user, refreshToken, keep);
220
215
  // Dispatch action
221
- // Only when unauthorized or with changes except 'token' and 'seconds'
222
- if (this.userStateDispatch != null && dataChanged)
216
+ if (this.userStateDispatch != null)
223
217
  this.userStateDispatch({
224
218
  type: UserActionType.Login,
225
219
  user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.3.55",
3
+ "version": "1.3.56",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -7,7 +7,7 @@ import {
7
7
  IUserData
8
8
  } from '@etsoo/appscript';
9
9
  import { NotificationRenderProps } from '@etsoo/notificationbase';
10
- import { DataTypes, Utils } from '@etsoo/shared';
10
+ import { DataTypes } from '@etsoo/shared';
11
11
  import React from 'react';
12
12
  import { NotifierMU } from '../mu/NotifierMU';
13
13
  import { ProgressCount } from '../mu/ProgressCount';
@@ -356,18 +356,11 @@ export class ReactApp<
356
356
  refreshToken: string,
357
357
  keep?: boolean
358
358
  ): void {
359
- // Changed
360
- const dataChanged =
361
- !this.authorized ||
362
- this.userData == null ||
363
- !Utils.objectEqual(this.userData, user, ['seconds', 'token']);
364
-
365
359
  // Super call, set token
366
360
  super.userLogin(user, refreshToken, keep);
367
361
 
368
362
  // Dispatch action
369
- // Only when unauthorized or with changes except 'token' and 'seconds'
370
- if (this.userStateDispatch != null && dataChanged)
363
+ if (this.userStateDispatch != null)
371
364
  this.userStateDispatch({
372
365
  type: UserActionType.Login,
373
366
  user