FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
3k stars 596 forks source link

Fix: use forwardref for nullability #981

Closed JeehyaeDance closed 1 year ago

JeehyaeDance commented 1 year ago

Description

This PR is for "[v6] Expand ref type, use React.forwardRef #969". Wrapped carousel component with React.forwardRef and replaced innerRef prop with a native-to-React ref prop.

Fixes # 969 (issue)

Type of Change

How Has This Been Tested?

Checklist

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nuka-carousel ✅ Ready (Inspect) Visit Preview Oct 27, 2022 at 5:25AM (UTC)
fritz-c commented 1 year ago

I only spotted a couple other breaking changes that had been proposed. There weren't any in GitHub issues, but there were a couple @deprecated-marked exports in the code that we could get rid of for v6.