From 5094e0f03fff3481a3d520082b2e39bb46ef7bc4 Mon Sep 17 00:00:00 2001 From: lice Date: Fri, 1 Apr 2022 09:42:12 +0200 Subject: [PATCH 1/2] Add rider idea folder to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b32bd32fb..cec4815ac 100644 --- a/.gitignore +++ b/.gitignore @@ -190,3 +190,4 @@ UpgradeLog*.htm # Microsoft Fakes FakesAssemblies/ +src/.idea From 392dad8958ec8a226b38f6846aebf66f0d54dff9 Mon Sep 17 00:00:00 2001 From: lice Date: Fri, 1 Apr 2022 15:55:46 +0200 Subject: [PATCH 2/2] fix output when logging undefined value during SSR --- src/React.Core/Resources/shims.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/React.Core/Resources/shims.js b/src/React.Core/Resources/shims.js index f99e4f264..166f41f28 100644 --- a/src/React.Core/Resources/shims.js +++ b/src/React.Core/Resources/shims.js @@ -19,7 +19,7 @@ MockConsole.prototype = { _handleCall: function(methodName/*, ...args*/) { var serializedArgs = []; for (var i = 1; i < arguments.length; i++) { - serializedArgs.push(JSON.stringify(arguments[i])); + serializedArgs.push(typeof arguments[i] === 'undefined' ? 'undefined' : JSON.stringify(arguments[i])); } this._calls.push({