Skip to content

Component throws unhandled exceptions and crashes after drag over not expanded lazy-loaded node. #298

Open
@megaboich

Description

@megaboich

It seems that lazy-loading is still an experimental issue, so I have created PR to include an example.

Steps to reproduce the actual bug:

  1. Go to storybook samples and navigate to Advanced -> Expand with lazy loading of child nodes.
  2. Open Console in web browser to see logs.
  3. Try to drag Egg node over Spaceship node.
  4. Unhandled exceptions are logged.
  5. If you drag Egg node from top direction over center of Spaceship node there are even more fatal react exceptions and tree disappears. Please check the recording: react-sortable-tree-crash-after-dnd-over-lazy-node
  6. Note: fatal errors occurs and tree disappears only on 16 version of React, on 15 it was working quite stable.

This bug documents the problem referenced in issue 211.

As for now I do not have any better ideas other than to recreate my old abandoned PR.

Do you have any ideas how to fix this in most correct way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions