Skip to content

with-drag-context.js - will trigger HTML5Backend error if in 2 different modules #23

Description

@edeustace

this module is designed so that there is only ever 1 instance of the html5backend running on a page, it does this by internally storing a singleton inside the module.

If you have 2 bundles built by webpack running on the same page, the logic in this module will fail, because they will both create the singleton, which causes react-dnd to check it's own global reference.

We'll probably need to check the global and return that instead of creating it. Check how react-dnd store this global ref and return that if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions