Skip to content

[BUG] UI not updated on post Deletion #633

Open
@ksraj123

Description

@ksraj123

Describe the bug
The UI does not update when a post is deleted. Request to delete the post to backend works as expected.

Steps to Reproduce
Step 1: Create a post
Step 2: Hit the API through postman to fetch the list of all posts, the post we created in step 1 would be in this list
Step 3: Delete the post though frontend
Step 4: Hit the API through postman to fetch the list of all posts, the post we created in step 1 would NOT be in the list but it's still visible on the frontend.

Expected behavior
The UI should update on the successful deletion of the post.

Screenshots
Peek 2020-09-30 05-07

Desktop:

  • OS: Ubuntu 20.04
  • Browser: Chrome
  • Version: 85

Additional context
Hacktoberfest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions