I have multiple components that follow this rendering structure if I am fetching data from a database. Basically, on componentWillMount() I fetch data from my API, while this is happening a spinner gets displayed on the screen, which is the else if statement. Once data is loaded the if statement is supposed to run which works on my desktop, and iPhone 5 & iPad mini on iOS 11. However, if I test my website on my iPhone 6, and iPad which are on iOS 9.3.3. The website gets stuck on the second else if statement. Basically, the spinner just stays, and never switches to show the data when it loads. Is this an iOS 9 issue or is it based on how I wrote my rendering function? I should add that this rendering format works on some pages and on other pages it does not work. Using if the page is doing a nested render it will not work. Sample code that doesn't work

Code that does work