Массив не записывается

Как заставить это работать? Массив не записывается и выдает пустой массив

const address = fetch("https://api.yoonost.com/account/session")
    .then((response) => response.json())
    .then((response) => {
        return response;
    })

const PrivateOutlet = () => {
    let response = { }

    address.then((a) => {
        response = a
    });

    console.log(response)

    return <Outlet />
}

Ответы (0 шт):