Although the given answer did help fix the issue, I did encounter other problems down the line, and to avoid future issues, I ended up using the map controller with the provider, so it always initializes first, not to say this may not have its own issues as I currently only use it for map state.