Open Nedomas opened 3 years ago
Latest commit: fa2dbe198b7cc9344417276d8430238cbe8d90ae
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Posting it here just to check if anybody else had a problem with disappearing refs inside
TouchScrollable
.An error with undefined
this.scrollableArea
inthis.scrollableArea.removeEventListener
started happening when I've started using React Suspense with React Router DOM. In certain scenarios if you load a route with Suspense on it,TouchScrollable
sometimes losesthis.scrollableArea
value.Not sure if there's something esoteric happening inside Suspense or there's something else - could not figure out. Was wondering if anybody else had a similar problem?
The diff here is just something that fixed my issue, but might be introducing some other problems later down the road.
Anyways - thanks for an amazing package!