对象错误:{message:“破坏非迭代实例的无效尝试”,堆栈:"TypeError:在e.exports () at e.exports at t.unstable_runWithPriority() at Rs () at Ps ()处对非迭代实例进行重构的无效尝试“}
const res = await fetch(&
尝试在空数组中添加数据,但在从添加数据屏幕调用addBlogPost时在BlogContext文件中遇到以下错误:
扩展不可迭代实例的尝试无效。为了可迭代,非数组对象必须具有Symbol.iterator方法。- node_modules/@babel/runtime/helpers/nonIterableSpread.js:2:22 in _nonIterableSpread