Skip to content
Snippets Groups Projects
Closed JetBrains: we check the access token twice at plugin load
  • View options
  • JetBrains: we check the access token twice at plugin load

  • View options
  • Closed Issue created by Administrator

    Created by: vdavid

    Context

    When loading the plugin, we do an access token verification in index.ts, and then another one in App.tsx.

    Problem

    As @philipp-spiess pointed it out here, we always do the two requests with the same token, so the second request is not needed.

    Solution

    Suggested solution: Memoize getAuthenticatedUser and noop when it was called again with the same accessToken

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first