{"action":"created","issue":{"url":"https://api.github.com/repos/researchgate/react-intersection-observer/issues/50","repository_url":"https://api.github.com/repos/researchgate/react-intersection-observer","labels_url":"https://api.github.com/repos/researchgate/react-intersection-observer/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/researchgate/react-intersection-observer/issues/50/comments","events_url":"https://api.github.com/repos/researchgate/react-intersection-observer/issues/50/events","html_url":"https://github.com/researchgate/react-intersection-observer/issues/50","id":379111324,"node_id":"MDU6SXNzdWUzNzkxMTEzMjQ=","number":50,"title":"Confusion: Two packages with the same name","user":{"login":"raRaRa","id":4303914,"node_id":"MDQ6VXNlcjQzMDM5MTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4303914?v=4","gravatar_id":"","url":"https://api.github.com/users/raRaRa","html_url":"https://github.com/raRaRa","followers_url":"https://api.github.com/users/raRaRa/followers","following_url":"https://api.github.com/users/raRaRa/following{/other_user}","gists_url":"https://api.github.com/users/raRaRa/gists{/gist_id}","starred_url":"https://api.github.com/users/raRaRa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raRaRa/subscriptions","organizations_url":"https://api.github.com/users/raRaRa/orgs","repos_url":"https://api.github.com/users/raRaRa/repos","events_url":"https://api.github.com/users/raRaRa/events{/privacy}","received_events_url":"https://api.github.com/users/raRaRa/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-09T10:44:28Z","updated_at":"2018-11-09T13:11:51Z","closed_at":"2018-11-09T13:11:51Z","author_association":"NONE","body":"What's the difference between this and https://github.com/thebuilder/react-intersection-observer\r\n\r\nBoth are almost identical in many ways, and actively maintained. Which one should I choose?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/researchgate/react-intersection-observer/issues/comments/437355273","html_url":"https://github.com/researchgate/react-intersection-observer/issues/50#issuecomment-437355273","issue_url":"https://api.github.com/repos/researchgate/react-intersection-observer/issues/50","id":437355273,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzM1NTI3Mw==","user":{"login":"Rendez","id":61776,"node_id":"MDQ6VXNlcjYxNzc2","avatar_url":"https://avatars0.githubusercontent.com/u/61776?v=4","gravatar_id":"","url":"https://api.github.com/users/Rendez","html_url":"https://github.com/Rendez","followers_url":"https://api.github.com/users/Rendez/followers","following_url":"https://api.github.com/users/Rendez/following{/other_user}","gists_url":"https://api.github.com/users/Rendez/gists{/gist_id}","starred_url":"https://api.github.com/users/Rendez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rendez/subscriptions","organizations_url":"https://api.github.com/users/Rendez/orgs","repos_url":"https://api.github.com/users/Rendez/repos","events_url":"https://api.github.com/users/Rendez/events{/privacy}","received_events_url":"https://api.github.com/users/Rendez/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T13:11:51Z","updated_at":"2018-11-09T13:11:51Z","author_association":"COLLABORATOR","body":"Hi, you're right that they're both actively maintained. Both packages have solid APIs and are durable. Pick what works best for your case by having a look at the docs and examples.\r\n\r\nThis library used to have the advantage that it reused instances based on the prop serialization automatically. Both things are also now available in the other one (although you need to use the prop `rootId` and keep track of that manually.\r\n\r\nAnother subtle difference is that we handle refs internally for you, so you don't have to specify the \"mount\" node (we will find it for you).\r\n\r\nUltimately, we also do not have a `triggerOnce` prop, [we found that it ambiguous](https://github.com/researchgate/react-intersection-observer/issues/32) and removed it in favour of a callback argument on `onChange`.\r\n\r\nIn the end, both libraries allow you to do the same and are performant and small in size at this point in time.\r\n\r\nOvertime, some projects grow apart and others they grow closer in behavior. We developed this library internally at ResearchGate and use it in production very extensively, so back then we decided to open source.\r\n\r\nI hope that clarifies things a bit more. The decision is yours!"}}
{"actor":{"display_login":"Rendez"}}