-
Notifications
You must be signed in to change notification settings - Fork 125
fix: dispose and lazy setters #201
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
Conversation
| @@ -1,3 +1,4 @@ | |||
| export * from './effects/Autofocus' | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved Autofocus to the effects/ folder
| depthPickingPass.dispose() | ||
| copyPass.dispose() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not missing .dispose() this time
| const [depthPickingPass] = useState(() => new DepthPickingPass()) | ||
| const [copyPass] = useState(() => new CopyPass()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lazy setter
|
can you create a CSB or StackBlitz to test if it's working? |
|
I'm actually taking the opportunity to setup Storybook for the repo (like we have in rt/drei), so we can test rt/pp components directly from source-code in this PR: #202 |
Yes, I've tested it on my csb https://codesandbox.io/s/dfw6w4, it is working as before :) |
|
🎉 This PR is included in version 2.11.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
.dispose()ing objecteffects/folder