Skip to content

Commit d3c300c

Browse files
Dudeonyxmarkerikson
authored andcommitted
Fix: null is no longer flagged as non-serializable (#69)
* null is no longer flagged as a non-serializable value * moved null check to last * Move null check earlier
1 parent 3f8b779 commit d3c300c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/serializableStateInvariantMiddleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import isPlainObject from './isPlainObject'
33
export function isPlain(val) {
44
return (
55
typeof val === 'undefined' ||
6+
val === null ||
67
typeof val === 'string' ||
78
typeof val === 'boolean' ||
89
typeof val === 'number' ||
910
Array.isArray(val) ||
10-
isPlainObject(val)
11+
isPlainObject(val)
1112
)
1213
}
1314

0 commit comments

Comments
 (0)