You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
useIdTokenResult fires a redundant token fetch on every re-render #743
from(promise) is called at hook-render time, so every re-render that doesn't hit the observable cache fires a discarded getIdTokenResult network request. This is the same pattern fixed in useStorageDownloadURL by #735.
Fix
Wrap in defer() so the promise is constructed at subscription time, not render time:
Activity