Sanity Library Reference Docs
    Preparing search index...

    Function useStudioProjectUsers

    • The project's members, robot tokens, and roles, read once per Studio client and project and shared by every caller.

      A read that has not answered within 15 seconds fails with a timeout error. After a failure, error is set and the read retries on its own while any component using this hook is mounted: first after 30 seconds, then doubling up to every 5 minutes. With nothing mounted, the next caller retries once the current delay has passed. While a retry is in flight, error stays set and loading stays false; both clear when a retry succeeds. Treat a failure as recoverable rather than final.

      Returns StudioProjectUsersState