Skip to content

Replace raf package with requestAnimationFrame#3644

Merged
emmatown merged 3 commits intoJedWatson:masterfrom
TrySound:raf
Oct 2, 2019
Merged

Replace raf package with requestAnimationFrame#3644
emmatown merged 3 commits intoJedWatson:masterfrom
TrySound:raf

Conversation

@TrySound
Copy link
Contributor

Not polyfilled requestAnimationFrame already used here
https://github.com/JedWatson/react-select/blob/master/packages/react-select/src/animated/transitions.js#L88

animatedScrollTo is never called in node so polyfilling for node does
not make sense too.

This removed two commonjs packages from user bundlers: raf and
performance-now.

Not polyfilled requestAnimationFrame already used here
https://github.com/JedWatson/react-select/blob/master/packages/react-select/src/animated/transitions.js#L88

`animatedScrollTo` is never called in node so polyfilling for node does
not make sense too.

This removed two commonjs packages from user bundlers: raf and
performance-now.
@TrySound
Copy link
Contributor Author

Friendly ping @gwyneplaine

@TrySound
Copy link
Contributor Author

Hi @mitchellhamilton. Could you take a look at this PR?

@TrySound
Copy link
Contributor Author

Friendly ping @JedWatson

@TrySound
Copy link
Contributor Author

@JedWatson @gwyneplaine could you take a look at this please?

@TrySound
Copy link
Contributor Author

TrySound commented Aug 4, 2019

Friendly ping guys @JedWatson @gwyneplaine @mitchellhamilton

@TrySound
Copy link
Contributor Author

TrySound commented Aug 7, 2019

Ping @gwyneplaine

@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2019

🦋 Changeset is good to go

Latest commit: ae66f63

We got this.

Not sure what this means? Click here to learn what changesets are.

Copy link
Collaborator

@emmatown emmatown left a comment

Choose a reason for hiding this comment

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

Sorry for the wait, Thanks for this!!

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