fix(deps): update dependency @react-three/fiber to v9.6.0#3390
Open
renovate[bot] wants to merge 1 commit intocanaryfrom
Open
fix(deps): update dependency @react-three/fiber to v9.6.0#3390renovate[bot] wants to merge 1 commit intocanaryfrom
renovate[bot] wants to merge 1 commit intocanaryfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.5.0→9.6.0Release Notes
pmndrs/react-three-fiber (@react-three/fiber)
v9.6.0: - Sunset XCompare Source
Ever tried using
<shaderMaterial uniforms={{ time: { value: time } }} />and ran into immediate issues with desync? No more.The uniforms objects on
ShaderMaterialand its derivatives now have a stable reference. Objects passed into uniforms will instead copy into it. This is the same as behavior for math structures that have copy such as position, rotation, quaternion, etc. and ends up simplifying using the raw JSX where utilities were often introduced before.Why does this matter?
Improves HMR. Even if you memoize the uniforms object it will still regenerate and desync Three. Now this won't happen. But also it makes compatibility with React compiler more complete with its auto-memoization.
Allows for inline uniform props and even prop uniforms directly on the material piercing.
Documentation can be found here: https://r3f.docs.pmnd.rs/api/objects#shader-material-uniforms
And an example can be found here: https://github.com/pmndrs/react-three-fiber/blob/master/example/src/demos/ShaderMaterial.tsx
What's Changed
New Contributors
Full Changelog: pmndrs/react-three-fiber@v9.5.0...v9.6.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
Summary by cubic
Update
@react-three/fiberto v9.6.0 to improveShaderMaterialuniform stability and HMR reliability. No app code changes required.@react-three/fiberfrom 9.5.0 to 9.6.0. Uniforms now have stable refs, enabling inlineuniformsand pierce notation (e.g.,uniforms-uColor-value) and reducing desync during HMR.pnpm-lock.yaml.Written for commit 5aa89e1. Summary will update on new commits.