• Robert Knight's avatar
    Add automated retry with backoff for session loads · a0308de1
    Robert Knight authored
    If a session load fails, subsequent calls to
    session.load() would trigger another request immediately.
    Together with feature flag checks triggering session.load(),
    this could result in a cycle if no network connection was present:
    
     1. App loads during initial digest cycle, 'flag.featureEnabled()'
        is called to test whether to show certain UI elements
     2. session.load() is triggered
     3. session.load() fails and the HTTP response error triggers
        a digest cycle
     4. GOTO 1
    
    This commit resolves the problem by automatically retrying
    session.load() calls with an exponential backoff.
    a0308de1
Name
Last commit
Last update
..
http.js Loading commit data...
identity.js Loading commit data...
module.js Loading commit data...