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

fix: splitting things mixed in the useFont loader function logic #1904

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

Gaic4o
Copy link
Contributor

@Gaic4o Gaic4o commented Apr 6, 2024

Why

Hello, we separated concerns inside the useFont loader function logic and refactored it to improve readability.

What

Separated concerns within the loader function for improved clarity and maintainability. Specifically, divided the font loading logic into two distinct functions: loadFontData for fetching the font data asynchronously, and parseFontData for parsing the loaded font data.

Checklist

  • Ready to be merged

Copy link

vercel bot commented Apr 6, 2024

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

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 6, 2024 4:12pm

Copy link

codesandbox-ci bot commented Apr 6, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@CodyJasonBennett CodyJasonBennett merged commit 32ea209 into pmndrs:master Apr 7, 2024
4 checks passed
@CodyJasonBennett
Copy link
Member

Thanks! Appreciate the work which is maybe less shiny, but keeps stuff working.

Copy link

github-actions bot commented Apr 7, 2024

🎉 This PR is included in version 9.105.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants