I'm trying to update an old application that I inherited that was using 2.4. Much of the code is triggering the alerts through a callback function after a fetch. These data calls are completely divorced from the page/render context so I'm not sure how to get the reference with the new hooks setup.