سلام استاد
من وقتی میخوام یک پست جدید رو اضافه کنم.خطای non-serializable رو داخل کنسول دارم.و پست هم تا صفحه رفرش نشه به لیست اصافه نمیشه.میخواستم بدونم این خطا رو چطور رفع کنم؟
react_devtools_backend.js:4026 A non-serializable value was detected in the state, in the path: `posts`. Value: ƒ operation(state, arg) {
function isPayloadActionArgument(arg2) {
return isFSA(arg2);
}
var runMutator = function (draft) {
if (isPayloadActionArgument(arg)) {
mutator…
Take a look at the reducer(s) handling this action type: post/addNewPost/fulfilled.