Skip to content

examples/cameras: unsupported in non-Chromium browsers #11

Description

@sammoore

For some reason, the current usage of either (a) setRef or (b) createPortal in general is causing the DeclarativeFrame component to fail in subsequent renders, i.e. if you pay close enough attention, the contents of each <iframe> renders and then disappears / is removed from the DOM.

I'm not sure if I would look too deeply into the cause of the disappearance / removal of elements as it is probably an issue with Preact's (and React's, if you see the mentioned gist ahead) createPortal implementation, or a very weird bug in Firefox; I've seen some mentions on a GitHub gist of switching to onLoad (which has not worked out for me), so that might be something to look into.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is neededwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions