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(useHelper): skip updates on static helpers #552

Merged
merged 3 commits into from
Sep 23, 2021

Conversation

CodyJasonBennett
Copy link
Member

@CodyJasonBennett CodyJasonBennett commented Sep 22, 2021

Why

useHelper currently breaks when using static helpers which don't expose update methods (as seen in #551).

What

This PR updates useHelper to ignore updates for helpers which don't supply update methods.

Sandbox

Here's a recreation of the issue with changes from this PR: https://codesandbox.io/s/amazing-ives-vmq9z?file=/src/App.js.

Checklist

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

@vercel
Copy link

vercel bot commented Sep 22, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/drei/5skKmKwrxBbKywghBjWnC4euyidG
✅ Preview: https://drei-git-fork-codyjasonbennett-fix-usehelper-update-pmndrs.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 22, 2021

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 7dfac61:

Sandbox Source
clever-fire-om8wq Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix! Thank you 💪🏼

@joshuaellis joshuaellis merged commit 01dd6fa into pmndrs:master Sep 23, 2021
@github-actions
Copy link

🎉 This PR is included in version 7.11.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@CodyJasonBennett CodyJasonBennett deleted the fix/usehelper-update branch September 23, 2021 16:18
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