Skip to content

Conversation

@tobilen
Copy link

@tobilen tobilen commented Dec 13, 2022

I kept running into issues that were hard to pin down, so i decided to rewrite this library from a class to a hook.

This PR should not have any breaking changes (unless you're using React versions not supporting hooks), and introduce a new named export, useDndScrolling. Example usage is written in the readme.

It should definitely improve performance though (according to my lighthouse tests, the page containing it is 2 points faster already)

For anyone wanting to try out this fork, adjust your react-dnd-scrolling dependency in your package json like so:

"react-dnd-scrolling": "npm:tobilen-react-dnd-scrolling@^1.3.2",

@ttt43ttt ttt43ttt merged commit bc5649c into TechStark:develop Dec 15, 2022
@tobilen tobilen deleted the refactor-to-hook branch December 15, 2022 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants