streamich/react-use
useEnsuredForwardedRef not working with callback refs
Offen
#805 geöffnet am 26.11.2019
bughelp wanted
Repository-Metriken
- Stars
- (43.979 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
If the forwarded ref is a callback ref the callback isn't called properly.
useEnsuredForwardedRef should check if the passed ref is a callback-function and if that's the case call it to set the ref.