Attach_hook does not assign in some pages the handle_info

Hello, I don`t know if it is a bug on LiveView or a wrong implementation

I implemented in my live_session the attach_hook bellow:

  ....  |> attach_hook(:logout_user_hook, :handle_info, fn
      :logout_user, socket ->
        {:cont, push_redirect(socket, to: "/auth/auth0/logout")}

      _, socket ->
        {:cont, socket}

Some pages work, and some pages do not with the error below:

[error] GenServer #PID<0.3653.0> terminating ** (FunctionClauseError) no function clause matching in ClarusWeb.DashboardLive.handle_info/2 (app 1.18.1) lib/app_web/live/dashboard/dashboard_live.ex:56: ClarusWeb.DashboardLive.handle_info(:logout_user, ....