Skip to content

Commit 1b90e1e

Browse files
committed
Stringify can return undefined
1 parent 6b091f0 commit 1b90e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function stringify(obj, serialize) {
3232
const str = typeof serialize === 'undefined' ? tryCatchStringify(obj) :
3333
jsan.stringify(obj, serialize.replacer, null, serialize.options);
3434

35-
if (!stringifyWarned && str.length > 16 * 1024 * 1024) { // 16 MB
35+
if (!stringifyWarned && str && str.length > 16 * 1024 * 1024) { // 16 MB
3636
/* eslint-disable no-console */
3737
console.warn('Application state or actions payloads are too large making Redux DevTools serialization slow and consuming a lot of memory. See https://git.io/fpcP5 on how to configure it.');
3838
/* eslint-enable no-console */

0 commit comments

Comments
 (0)