We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4959a1 commit 2b7bbb1Copy full SHA for 2b7bbb1
1 file changed
packages/analytics/lib/struct.js
@@ -18,6 +18,10 @@ import { isUndefined } from '@react-native-firebase/app/lib/common/validate';
18
import { create } from 'superstruct';
19
20
export const validateStruct = (value = {}, struct, prefix = '') => {
21
+ // skip superstruct create in release for performance reasons
22
+ if (!__DEV__) {
23
+ return value;
24
+ }
25
try {
26
return create(value, struct);
27
} catch (e) {
0 commit comments