Add isLoading
state and refactor the core
#1928
Merged
isLoading
state and refactor the core
#1928