You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -29,6 +28,7 @@ export function checkValidInput(...input: unknown[]) {
29
28
const[key,value]=input;
30
29
31
30
if(typeofkey!=='string'){
31
+
// eslint-disable-next-line no-console
32
32
console.warn(
33
33
`[AsyncStorage] Using ${typeofkey} type for key is not supported. This can lead to unexpected behavior/errors. Use string instead.\nKey passed: ${key}\n`
34
34
);
@@ -40,6 +40,7 @@ export function checkValidInput(...input: unknown[]) {
40
40
`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${value}\nPassed key: ${key}\n`
41
41
);
42
42
}else{
43
+
// eslint-disable-next-line no-console
43
44
console.warn(
44
45
`[AsyncStorage] The value for key "${key}" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: ${value}\nPassed key: ${key}\n`
0 commit comments