ridatadiscoverycenter / react-aframe-volume-renderer

afreame-webgl2 volumen renderer as a reactjs app
MIT License
3 stars 0 forks source link

fix: fix toggle buttons not reacting #26

Closed RobertGemmaJr closed 3 years ago

RobertGemmaJr commented 3 years ago

volumeReducer returns a new state object (instead of mutating original) which triggers a re-render of components that use VolumeContext.

Fixes a bug where the ToggleButtons were not changing state when clicked

closes issue #25

github-actions[bot] commented 3 years ago

Visit the preview URL for this PR (updated for commit 51051ee):

https://riddc-volume-viewer--pr26-fix-toggle-buttons-inknoca8.web.app

(expires Wed, 29 Sep 2021 20:53:20 GMT)

🔥 via Firebase Hosting GitHub Action 🌎