Skip to content

Commit dea056b

Browse files
committed
chore: notify observer about every state change
1 parent 11f4eb0 commit dea056b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
"version": "0.44.1"
142142
},
143143
"dependencies": {
144-
"@sentry/react-native": "^6.3.0",
145-
"lodash": "^4.17.21"
144+
"@sentry/react-native": "^6.3.0"
146145
}
147146
}

src/Contentpass.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { isEqual } from 'lodash';
21
import OidcAuthStateStorage, {
32
type OidcAuthState,
43
} from './OidcAuthStateStorage';
@@ -206,10 +205,6 @@ export default class Contentpass {
206205
};
207206

208207
private changeContentpassState = (state: ContentpassState) => {
209-
if (isEqual(this.contentpassState, state)) {
210-
return;
211-
}
212-
213208
this.contentpassState = state;
214209
this.contentpassStateObservers.forEach((observer) => observer(state));
215210
};

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12585,7 +12585,6 @@ __metadata:
1258512585
eslint-config-prettier: ^9.0.0
1258612586
eslint-plugin-prettier: ^5.0.1
1258712587
jest: ^29.7.0
12588-
lodash: ^4.17.21
1258912588
prettier: ^3.0.3
1259012589
react: 18.3.1
1259112590
react-native: 0.76.2

0 commit comments

Comments
 (0)