Skip to content

Conversation

@jquense
Copy link
Member

@jquense jquense commented May 13, 2020

No description provided.

Copy link
Member

@taion taion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit re: naming, good otherwise

const isMounted = useMounted()
const eventHandler = useEventCallback(handler)

const nextPointRef = useRef<{ event: TEvent | null; handle: null | number }>({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: nextEventInfoRef? this isn't just dealing with mouse/pointer events any more

@jquense jquense merged commit f03d52b into master May 13, 2020
@jquense jquense deleted the throttled-event-listener branch May 13, 2020 18:34
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.

3 participants