Skip to main content
Calling setState on the current state is always a no-op. Did you mean to change the state like Y(!Y(!X) instead?
I