Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in IE 'Object doesn't support property or method 'findIndex' #17

Open
yogi5rathore opened this issue Oct 31, 2017 · 4 comments

Comments

@yogi5rathore
Copy link

No description provided.

@yogi5rathore
Copy link
Author

getIndex: function getIndex(id) {
return this.stack.findIndex(function (loader) {
return loader.id === id;
});

@bodtx
Copy link

bodtx commented Nov 2, 2017

Same thing here with IE11

@ChrisFerrell
Copy link

A polyfill that should fix that problem

<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Array.prototype.find,Array.prototype.findIndex"></script>

@jackwilsdon
Copy link

jackwilsdon commented Nov 10, 2017

Something like babel-polyfill or the polyfill from Mozilla is probably your best bet - I don't think react-loader-advanced should provide this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants