Message from JavaScript discussions

November 2017

— Actually new entries are generated by IntersectionObserver API


const observerCallback = (entries, callback) => entries.forEach(entry => entryCallback(entry, callback))

— Okay, you have the callback?

— Callback is called by IntersectionObserver API

— const entryCallback = (entry, callback) => callback(mapEntry(entry))

— Aaaaaaaaaaaaaaaaaa

— Just fucking

— Write it imperatively first

— So I can see which code you need to touch in order to do this

— Everything it's on the repo

— I just made some wrappers in order to map the intersection observer callbacks to a "readable" one

— Huh