Closed RobertGemmaJr closed 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 🌎
volumeReducer
returns a new state object (instead of mutating original) which triggers a re-render of components that useVolumeContext
.Fixes a bug where the
ToggleButtons
were not changing state when clickedcloses issue #25