pmndrs / drei-vanilla

🍦 drei-inspired helpers for threejs
https://pmndrs.github.io/drei-vanilla/
MIT License
469 stars 18 forks source link

chore(Storybook): memoize canvas/gl, fix OOM on HMR #7

Closed CodyJasonBennett closed 1 year ago

CodyJasonBennett commented 1 year ago

Fixes https://github.com/pmndrs/drei-vanilla/issues/5 by sharing a singleton canvas/context and recursively disposing on HMR/navigate.

codesandbox-ci[bot] commented 1 year ago

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

Sandbox Source
objective-sammet-9bftss Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration
github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: