Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

update() && forceUpdate() with createPortal #461

Open
AlexeyShaykov opened this issue Nov 9, 2023 · 0 comments
Open

update() && forceUpdate() with createPortal #461

AlexeyShaykov opened this issue Nov 9, 2023 · 0 comments

Comments

@AlexeyShaykov
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant