Unfortunately, the component does not rerender itself and the old presets are still visible. As soon as I move the zoom-slider, the component repaints itself and everything is fine. But this seems too late.
Post please a runnable code that we will be able to run, investigate and debug. We need to sort out if it is a problem in how React handles changes or a problem in our wrappers or components.
I've run the code you provided and I found that presets are changed successfully but to you need to say which of them to use afterwards. Try the following App.js:
Thank you for your suggestion. I removed one useEffect() in order to reduce the amount of render cycles since presets are not needed within App anyway: