Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(feed): Remove this useless useEffect used for Video render #1350

Open
WaDadidou opened this issue Nov 14, 2024 · 0 comments
Open

chore(feed): Remove this useless useEffect used for Video render #1350

WaDadidou opened this issue Nov 14, 2024 · 0 comments
Labels
Social Feed Everything related to the Social Feed

Comments

@WaDadidou
Copy link
Collaborator

It's here: https://github.com/TERITORI/teritori-dapp/blob/main/packages/screens/FeedPostView/components/FeedPostDefaultView.tsx#L57-L62

Why removing that ?

FeedPostDefaultView is only called in FeedPostView, but this useEffect redirects to FeedPostView.
Also, the PostCategory.Video case is already handled in FeedPostView: https://github.com/TERITORI/teritori-dapp/blob/main/packages/screens/FeedPostView/FeedPostView.tsx#L81-L82.
So, there is no reason to redirect to FeedPostView for the PostCategory.Video case

@WaDadidou WaDadidou added the Social Feed Everything related to the Social Feed label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Social Feed Everything related to the Social Feed
Projects
None yet
Development

No branches or pull requests

1 participant