When doing a setState() in the onToggle() function, suddenly it doesn't switch to the other value anymore but no error is occurring. Even the state value is switching properly but the view doesn't get updated.
Everything works fine until I try to add some state, what am I doing wrong?
Best regards.