metafizzy / metafizzy/infinite-scroll
Error listener not working at all
Open
- Dominant language
- HTML
- Stars
- 7.5k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
I don`t know why, but error listener is not working for me.
I want to display a message on the page if selector is not correct or something else goes wrong.
```
// vanilla JS
infScroll.on( 'error', function( error, path, response ) {
console.log('we got error');
document.write(error);
})
```
Contributor guide
Research direction
Start by reproducing the vanilla JavaScript example using infScroll.on('error', ...) and an invalid selector or other failing request. Trace whether the error callback is reached and verify that the listener can display a message when an error occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100