react-reverse-portal icon indicating copy to clipboard operation
react-reverse-portal copied to clipboard

Allow a fallback element when OutPortal isn't mounted

Open tr00st opened this issue 3 months ago • 1 comments

As per the use case in #52 - this PR adds a fallback location to mount InPortal content when no OutPortal is present. Intended to handle continuing video playback when an OutPortal being present can't be guaranteed.

Still needs a run through handling if the Ref's .current value changes, to ensure remounting and unmounting occurs when that value is changed.

tr00st avatar Oct 02 '25 15:10 tr00st

Just spotted the changes pushed in the mean time, will get this updated on my end

tr00st avatar Oct 02 '25 15:10 tr00st