Skip to content

Swap API requests persist after page navigation #38

Description

@eitr0x

Describe the bug
APIs & other network requests related to the swapping page keep getting pulled in the background when navigating from the swap page to the mining page or any other page If the page is not properly refreshed (ctrl+r).

To Reproduce
Steps to reproduce the behavior:

  1. Go to the swap page => (/swap/solana)
  2. Click on the POND🤝X logo in the top left corner
  3. From the main page, go to the mining page(Or any other page without refreshing)
  4. Open DevTools under the network tab and see that swap related APIs are getting pulled.

Expected behavior
All swap-related network requests should stop when leaving the swap page.

Screenshots
Image

Desktop:

  • OS: macOS Sequoia, Windows 11
  • Browser: Chromium Browser / Brave

Additional context
Issue resolves when manually refreshing the page.
Affects navigation to any page from the swap page.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions