Skip to content

Releases: pmndrs/react-ogl

v0.14.2

14 May 22:15
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.14.1...v0.14.2

v0.14.1

03 May 19:20
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.14.0...v0.14.1

v0.14.0

08 Mar 22:13
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.0...v0.14.0

v0.13.0

07 Nov 02:55
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.12.0...v0.13.0

v0.12.0

10 Oct 09:19
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.11.0...v0.12.0

v0.11.0

21 Sep 19:35
Compare
Choose a tag to compare

What's Changed

This release implements a context bridge within Canvas, enabling react-ogl 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-ogl'

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: v0.10.1...v0.11.0

v0.10.1

15 Sep 09:41
Compare
Choose a tag to compare

What's Changed

No changes in this release. Working around a Bundlephobia issue to get bundle size metrics working again.

Full Changelog: v0.10.0...v0.10.1

v0.10.0

15 Sep 09:33
Compare
Choose a tag to compare

What's Changed

This release includes some upstream fixes for suspense and concurrency.

Additionally, portals can now create state enclaves to isolate scenes, cameras, etc. from the root store. This is particularly useful for postprocessing and complex effects.

function Component {
  // scene & camera are inherited from portal parameters
  const { scene, camera, ... } = useOGL()
}

const scene = new OGL.Transform()
const camera = new OGL.Camera()

<transform>
  {createPortal(<Component />, scene, { camera })
</transform>

Full Changelog: v0.9.2...v0.10.0

v0.9.2

15 Sep 07:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.9.1...v0.9.2

v0.9.1

07 Sep 17:30
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.9.0...v0.9.1