rt2zz / redux-action-buffer

Buffer Redux Actions
MIT License
79 stars 6 forks source link

Object doesn't support property or method 'includes' in IE #20

Open rafatwork opened 6 years ago

rafatwork commented 6 years ago

My application stopped running in IE when trying to implement this middleware.

Appears it uses the includes() method, which is not supported in IE: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

Users needing to support IE should be polyfilling this. FYI: for create-react-app users, a "import 'core-js/es7/array';" in your index.js should suffice as well.

Just leaving it here, unsure if this is something that should be fixed in the module or at least documented somewhere.