[Popper] Add popperRef prop#16069
Merged
Merged
Conversation
oliviertassinari
force-pushed
the
popper-popperRef
branch
3 times, most recently
from
June 5, 2019 13:13
1aa1961 to
ae902d1
Compare
oliviertassinari
commented
Jun 5, 2019
Details of bundle changes.Comparing: 41f1722...d62b730
|
eps1lon
previously requested changes
Jun 5, 2019
oliviertassinari
force-pushed
the
popper-popperRef
branch
from
June 6, 2019 20:58
1bf6976 to
0a7e27b
Compare
eps1lon
previously requested changes
Jun 6, 2019
oliviertassinari
force-pushed
the
popper-popperRef
branch
6 times, most recently
from
June 6, 2019 23:00
36f40fc to
59c81f8
Compare
oliviertassinari
dismissed
eps1lon’s stale review
June 6, 2019 23:05
This one was a hard one for me!
eps1lon
reviewed
Jun 7, 2019
eps1lon
left a comment
Member
There was a problem hiding this comment.
Keep forgetting I have pending reviews.
Co-Authored-By: Sebastian Silbermann <[email protected]>
Co-Authored-By: Sebastian Silbermann <[email protected]>
oliviertassinari
force-pushed
the
popper-popperRef
branch
from
June 8, 2019 16:28
62ae024 to
d648da9
Compare
oliviertassinari
force-pushed
the
popper-popperRef
branch
from
June 8, 2019 16:28
d648da9 to
d62b730
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15802.
These changes are extracted from #15703:
{}as default prop value. This is a new reference at each render. Most of the time, it's fine. The problem, in this case, is that we are using the value as an effect dependency. It reruns systematically. I have noticed it with a poor slider update performance.popperRefprop that behaves like a reference. It can be used to programmatically update the position of the popper, e.g. when the slider's thumb value changes.