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
In my code, when fetching data from the API, I parse all date ISO strings into Dates because it's better this way.
That causes @reduxjs/toolkit to log two error messages:
A non-serializable value was detected in an action, in the path:
A non-serializable value was detected in the state, in the path:
There seems to be no configuration option to disable those error messages.
For anyone coming here from Google, my solution to the issue is:
constconsoleError=console.error;// eslint-disable-line no-consoleconsole.error=(...args)=>{// eslint-disable-line no-consoleif(args&&typeofargs[0]==='string'&&args[0].indexOf('A non-serializable value was detected in')>-1){// Ignore.}else{// Log the error as normally.consoleError.apply(console,args);}};
The text was updated successfully, but these errors were encountered:
In my code, when fetching data from the API, I parse all date ISO strings into
Date
s because it's better this way.That causes
@reduxjs/toolkit
to log two error messages:There seems to be no configuration option to disable those error messages.
For anyone coming here from Google, my solution to the issue is:
The text was updated successfully, but these errors were encountered: