Running loading hook is required by wait api

BTW, what is the right place to run `dataNotFoundHook`?