Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: react-merge-refs => useImperativeHandle #1009

Closed
wants to merge 1 commit into from

Conversation

CodyJasonBennett
Copy link
Member

@CodyJasonBennett CodyJasonBennett commented Aug 18, 2022

Why

What

Removes react-merge-refs in favor of React's built-in useImperativeHandle.

Checklist

  • Documentation updated
  • Storybook entry added
  • Ready to be merged

@vercel
Copy link

vercel bot commented Aug 18, 2022

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

Name Status Preview Updated
drei ❌ Failed (Inspect) Aug 18, 2022 at 9:20AM (UTC)

@CodyJasonBennett CodyJasonBennett marked this pull request as draft August 18, 2022 09:22
@CodyJasonBennett
Copy link
Member Author

I'm not going to be able to unravel the typing woes around Instances etc. Leaving this as a draft for now.

@drcmda
Copy link
Member

drcmda commented Aug 25, 2022

never thought of that, nice trick actually :-O

@drcmda
Copy link
Member

drcmda commented Nov 19, 2022

if you want just do any and let someone else figure it out, there are places where i did that bc it just blocked everything. useImperativeHandle makes so much sense here instead of react-use-refs, and rur has even caused problems in the past because their later version breaks compat, so removing that would be awesome.

@CodyJasonBennett CodyJasonBennett deleted the refactor/prefer-useimperativehandle branch February 24, 2024 05:50
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.

None yet

2 participants