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

Import useEnsuredForwardedRef as standalone #153

Merged

Conversation

lightningspirit
Copy link
Contributor

This commit removes the need to import react-use package as dependency, which reduces the bundle size in 0.5MB (npm reports).

Since the only function that is used is useEnsuredForwardedRef it was imported directly as a standalone js file into src/hooks directory.

Closes #152

This commit removes the need to import `react-use` package as
dependency, which reduces the bundle size in 0.5MB (npm reports).

Since the only function that is used is `useEnsuredForwardedRef` it
was imported directly as a standalone js file into `src/hooks`
directory.

Closes Wildhoney#152
@Wildhoney
Copy link
Owner

Nice, thanks :)

@Wildhoney Wildhoney merged commit 47b29a1 into Wildhoney:master Jun 12, 2023
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.

Remove react-use dependency due to package size
2 participants