Skip to content

Infinite API calls #105

@kailash360

Description

@kailash360

Describe the bug

Whenever a user clicks on a story to read it, the Story.js component is rendered, and this makes infinite requests to the backend.

To Reproduce

Steps to reproduce the behavior:

  1. Right click on homepage and choose Inspect
  2. Go to Networks tab
  3. Click on any story on the homepage with the inspect section open
  4. You will see infinite requests made by the client

Expected behavior

The component should make only a single request to the backend and this should be sufficient to return the required data.

Logs

Bug.mp4

Environment (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome

Additional context

NIL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions