react-popper
react-popper copied to clipboard
update() && forceUpdate() with createPortal
Hi. Thanks for amazing lib!
Tell me please how to use update or forceUpdate functions in case https://popper.js.org/react-popper/v2/react-portals/ when popper render inside react portal?
in my case
const { styles, attributes, forceUpdate, update } = usePopper()
hook usePopper always return forceUpdate or update null.
My problem is how to update poper position while scrolling the page
Thank you for any help you may be able to give!