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

feat: added onCentered callback in the useLayoutEffect #1020

merged 3 commits into from Aug 30, 2022


Copy link

@robksawyer robksawyer commented Aug 25, 2022


Trying to center text based on the screen width and hoping this will help.


Added an onCentered callback that contains some bounds to check against.


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

Copy link

vercel bot commented Aug 25, 2022

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

Name Status Preview Updated
drei Ready (Inspect) Visit Preview Aug 25, 2022 at 1:22PM (UTC)

Copy link

codesandbox-ci bot commented Aug 25, 2022

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.

Latest deployment of this branch, based on commit 1fbe158:

Sandbox Source
ecstatic-wildflower-yqnr3l Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@drcmda drcmda merged commit f5f252f into pmndrs:master Aug 30, 2022
2 checks passed
Copy link

github-actions bot commented Aug 30, 2022

🎉 This PR is included in version 9.25.0 🎉

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
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants