From dea056b645bbdcec758a8e87bedae6a012a45d3d Mon Sep 17 00:00:00 2001 From: slawek Date: Tue, 3 Dec 2024 10:21:59 +0100 Subject: [PATCH] chore: notify observer about every state change --- package.json | 3 +-- src/Contentpass.ts | 5 ----- yarn.lock | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/package.json b/package.json index b892b71..f255689 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,6 @@ "version": "0.44.1" }, "dependencies": { - "@sentry/react-native": "^6.3.0", - "lodash": "^4.17.21" + "@sentry/react-native": "^6.3.0" } } diff --git a/src/Contentpass.ts b/src/Contentpass.ts index 47d011d..ff77fd0 100644 --- a/src/Contentpass.ts +++ b/src/Contentpass.ts @@ -1,4 +1,3 @@ -import { isEqual } from 'lodash'; import OidcAuthStateStorage, { type OidcAuthState, } from './OidcAuthStateStorage'; @@ -206,10 +205,6 @@ export default class Contentpass { }; private changeContentpassState = (state: ContentpassState) => { - if (isEqual(this.contentpassState, state)) { - return; - } - this.contentpassState = state; this.contentpassStateObservers.forEach((observer) => observer(state)); }; diff --git a/yarn.lock b/yarn.lock index f727642..1a05db2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12585,7 +12585,6 @@ __metadata: eslint-config-prettier: ^9.0.0 eslint-plugin-prettier: ^5.0.1 jest: ^29.7.0 - lodash: ^4.17.21 prettier: ^3.0.3 react: 18.3.1 react-native: 0.76.2