you may need to use these hooks
Option Description
Moralis The global Moralis instance (same as the global Moralis object)
isInitialized A boolean, indicating if Moralis has been initialized
isInitializing A boolean, indicating if Moralis is currently initializing
you can also search on forum for others that had the same problem, I’m not really expert in react