magic-akari / seamless-scroll-polyfill

Scroll Behavior polyfill
https://www.npmjs.com/package/seamless-scroll-polyfill
MIT License
159 stars 12 forks source link

Where to put import? #105

Closed coler-j closed 3 years ago

coler-j commented 3 years ago

Should be import of the polyfill be at some top level outside the mounting of the react application? Or can it be directly inside my functional component?

magic-akari commented 3 years ago

Sorry for the late update. Notification has been flooded so heavily.

Yes, you can import the polyfill function and call it once at the top level. Or, you can import and call the specific function you need.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.0.0-alpha.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.0.0-beta.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

magic-akari commented 3 years ago

I cannot figure out why bot commented here. I will close this issue.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: