React-sortable-tree: `canDrop` API

Created on 12 Feb 2017  路  2Comments  路  Source: frontend-collective/react-sortable-tree

The component needs an api to control where certain nodes can be dropped in the tree.

enhancement

Most helpful comment

Until now the issue making this difficult was that the tree would be rebuilt on every drag event, putting a load on the CPU and slowing down the whole UI. However, I think memoization (caching the most recent input -> output combination to be served on identical calls) could very well take care of that. Why I didn't think of that until now is a different issue ^_^;

All 2 comments

Until now the issue making this difficult was that the tree would be rebuilt on every drag event, putting a load on the CPU and slowing down the whole UI. However, I think memoization (caching the most recent input -> output combination to be served on identical calls) could very well take care of that. Why I didn't think of that until now is a different issue ^_^;

Related: #47 #46 #18 #12

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JonatanGarciaClavo picture JonatanGarciaClavo  路  3Comments

Suremotoo picture Suremotoo  路  4Comments

bigjujube picture bigjujube  路  4Comments

brendanmoore picture brendanmoore  路  5Comments

NickEmpetvee picture NickEmpetvee  路  3Comments