Add missing react lifecycle hooks to fileDrop #5419

Merged
DispatchCommit merged 1 commit from refactor/file-drop-react-hooks into master 2021-01-29 20:49:13 +01:00
DispatchCommit commented 2021-01-28 06:18:07 +01:00 (Migrated from github.com)

(should) Correctly add missing react lifecycles hooks (useCallback) for handling file drag and drop.

Removes unnecessary FlowFixMe, adds additional code comments, handles all variable dependencies correctly (memoizing results).

Quick tests reveal behavior and functional remain the same, but now there is 1 less warning when running yarn lint 😃

Shouldn't functionally change any behavior.

(should) Correctly add missing react lifecycles hooks (`useCallback`) for handling file drag and drop. Removes unnecessary FlowFixMe, adds additional code comments, handles all variable dependencies correctly (memoizing results). Quick tests reveal behavior and functional remain the same, but now there is **1 less warning** when running `yarn lint` 😃 Shouldn't functionally change any behavior.
neb-b commented 2021-01-29 20:49:09 +01:00 (Migrated from github.com)

Great cleanup!

Great cleanup!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#5419
No description provided.