Releases: pmndrs/react-three-fiber
Releases Β· pmndrs/react-three-fiber
v8.8.3
What's Changed
Full Changelog: v8.8.2...v8.8.3
v8.8.2
What's Changed
- chore(docs): update concurrency info on Pitfalls docs page by @PontusHorn in #2517
- fix(Canvas): prevent remount on context update by @CodyJasonBennett in #2522
New Contributors
- @PontusHorn made their first contribution in #2517
Full Changelog: v8.8.1...v8.8.2
v8.8.1
What's Changed
- refactor: pull context bridge from its-fine by @CodyJasonBennett in #2512
No changes in this release.
Full Changelog: v8.8.0...v8.8.1
v8.8.0
What's Changed
- feat(Canvas): bridge cross-container context by @CodyJasonBennett in #2509
This release implements a context bridge within Canvas
, enabling R3F children to consume context between renderers (e.g. react-dom
or react-native
), and removing the need for manually bridging context.
import * as React from 'react'
import * as ReactDOM from 'react-dom/client'
import { Canvas } from '@react-three/fiber'
const DOMContext = React.createContext()
function Component() {
// "Hello from react-dom"
console.log(React.useContext(DOMContext))
}
ReactDOM.createRoot(document.getElementById('root')).render(
<DOMContext.Provider value="Hello from react-dom">
<Canvas>
<Component />
</Canvas>
</DOMContext.Provider>,
)
Full Changelog: v8.7.4...v8.8.0
v8.7.4
What's Changed
- fix: use self to get global context before window by @joewhatkins in #2493
New Contributors
- @joewhatkins made their first contribution in #2493
Full Changelog: v8.7.2...v8.7.4
v8.7.3
What's Changed
Full Changelog: v8.7.2...v8.7.3
v8.7.2
What's Changed
Full Changelog: v8.7.1...v8.7.2
v8.7.1
What's Changed
Full Changelog: v8.7.0...v8.7.1
v8.7.0
What's Changed
- feat(hooks): useInstanceHandle by @CodyJasonBennett in #2484
- feat(loop):
flushGlobalEffects
for manual loop manipulation by @CodyJasonBennett in #2481
Full Changelog: v8.6.2...v8.7.0
v8.6.2
What's Changed
- fix(types): @react-three/drei declaration files by @Methuselah96 in #2478
Full Changelog: v8.6.1...v8.6.2