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

Like a collection is broken on first load #615

Open
ReidyT opened this issue May 6, 2024 · 3 comments
Open

Like a collection is broken on first load #615

ReidyT opened this issue May 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ReidyT
Copy link
Contributor

ReidyT commented May 6, 2024

Screen.Recording.2024-05-06.at.09.56.39.mov
@ReidyT ReidyT added the bug Something isn't working label May 6, 2024
@ReidyT ReidyT self-assigned this May 6, 2024
@ReidyT
Copy link
Contributor Author

ReidyT commented May 6, 2024

I'm not able to reproduce the error on local environnement with the latest code, I will recheck after the new deployment on prod.

Screen.Recording.2024-05-06.at.10.41.40.mov

@ReidyT
Copy link
Contributor Author

ReidyT commented Jul 10, 2024

The error only occurs on builded server (use yarn start:ci)

@ReidyT
Copy link
Contributor Author

ReidyT commented Jul 11, 2024

I'm unable to find why it's not working from the home page but it's works when refreshing directly on the collection. I put just below two videos that show some interesting logs. With these video, we can find some differences between the two view:

  • From the collection

    • The query LikesForMember is undefined first, but at the end, it is in idle status.
    • Each time you click on the like button, a fetch is made to retrieve new data (the fetch log is inside the queryFn of useLikesForMember)
  • From the main

    • The query LikesForMember is undefined first, then it is in idle status, but at the end, it's undefined.
    • Only at the first render, the likes are fetched. After that, clicking on the like button invalidate the query, but the queryFn is not executed anymore (I also tried to always enable the query).
not_working_from_home.mov
works_when_directly_on_collection.mov

@ReidyT ReidyT added the help wanted Extra attention is needed label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant