Make sure loading spinner is mounted before trying to set props