I'm new in this project and I'm trying to use the react-redux-universal-hot-example
API, but using my code:
export function showMessage() {
return {
type: SHOW_MESSAGE,
promise: (client) => client.get('/posts')
};
}
I get this error in my browser:
TypeError: Invalid attempt to destructure non-iterable instance
Can anyone help?
if you are having this issue while working with es6 version of For Of loop, just check wheather you used .entries() on the array or not.
Example:
for( const [item. index] of arr.entries() ) {
console.log(index);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With