Skip to content

Scaladoc sends exponentially many requests when switching between docs and API using the logo in the top left corner #19371

Closed
@Katrix

Description

@Katrix

Compiler version

3.3.1 (Although it seems to happen on the current Nightly for the dotty docs too)

Steps to reproduce

  1. Go to https://dotty.epfl.ch/api/index.html
  2. Open the networks tab, or console and enable XHR
  3. Click on API in the sidebar
  4. Click on the logo in the top left of the page. (One request sent)
  5. Click on the logo in the top left of the page. (One request sent)
  6. Click on the logo in the top left of the page. (Two request sent)
  7. Click on the logo in the top left of the page. (Two request sent)
  8. Click on the logo in the top left of the page. (Four request sent)
  9. Click on the logo in the top left of the page. (Four request sent)
  10. Click on the logo in the top left of the page. (Eight request sent)
    ...

Alternating between API and Docs in the sidebar does not seem to trigger it, although doing that a few times and then clicking on the logo does trigger it, and sens requests based on how many times one has switched back and forth.

Expectation

One request should be sent for each click

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions