Window
object.
If you try to trigger a command seperately as soon as the page opens via a separate useEffect
hook
it can result in a race condition where minikit is not yet installed when you call the command.
Fix: If you wish to call a command on open include the command inside the same useEffect
hook you use to install MiniKit.