https://codesandbox.io/s/react-popper-v1x-issue-template-3hcp9
demo/index.js file with the code in index.js of the codesandbox's index.js file referenceNode is retaining the div element referenceNode in Manager is set to null when the Reference element is removed from the page.
When the Reference element is removed from the page, the ref value passed to the Manager context is retained. This creates a memory leak in situations where the reference element is regularly removed from a page.
It looks like the reason this is happening is because of this line in Manager.js: https://github.com/FezVrasta/react-popper/blob/master/src/Manager.js#L35
The Reference component sets its ref attribute to null when it is unmounting, but Manager no-ops when a null value is sent.
Thanks for the report! Would you mind if I asked you to send a PR with a proposed fix?
Already working on it :)
I should have one up later this morning
@FezVrasta Got a PR up for this. LMK if you want anything changed on it.
Most helpful comment
@FezVrasta Got a PR up for this. LMK if you want anything changed on it.