After Login I have to refresh the page again #44

Closed
opened 2024-01-24 10:41:26 +01:00 by cvu · 7 comments
Collaborator

After the Login I am still in the not-login-mode and have to refresh the page. For shure a lot of people do not know this.

After the Login I am still in the not-login-mode and have to refresh the page. For shure a lot of people do not know this.
cvu added the
bug
label 2024-01-24 10:41:26 +01:00
Owner

I observed this and it seems to happen only some of the times. The way I remember it one had to even force-reload the page, which is even more inaccessible (and actually not possible on mobile).

I observed this and it seems to happen only some of the times. The way I remember it one had to even force-reload the page, which is even more inaccessible (and actually not possible on mobile).
778a69cd added the
upstream
label 2024-01-24 17:50:03 +01:00
Collaborator

If I logout and login again, everything seems to work. The issue seems to happen when I logout, refresh the page and then try to login, so in a way, the issue occurs on newly loaded/reloaded pages.

I had a look and the issue seems to be in views/User/LoginView.vue line 249 when trying the load the current User Identities via apollo's useLazyQuery (when the issue happen, the execution stops there / no result or promise are returned even tho the request to the server is successful)

anyway, I found the following issue on github that seems to have some answers but I'm not sure yet how to implement them (the discussion seem to be about an issue in React and not vue tho, but the issue seems similar to the one we're having):
https://github.com/apollographql/apollo-client/issues/9354

more specifically, the following comments:

  1. This comment provides a workaround https://github.com/apollographql/apollo-client/issues/9354#issuecomment-1234952933
  2. This comment seems to provide a reason for this issue https://github.com/apollographql/apollo-client/issues/9354#issuecomment-1423166206
If I logout and login again, everything seems to work. The issue seems to happen when I logout, refresh the page and then try to login, so in a way, the issue occurs on newly loaded/reloaded pages. I had a look and the issue seems to be in `views/User/LoginView.vue` line 249 when trying the load the current User Identities via apollo's `useLazyQuery` (when the issue happen, the execution stops there / no result or promise are returned even tho the request to the server is successful) anyway, I found the following issue on github that seems to have some answers but I'm not sure yet how to implement them (the discussion seem to be about an issue in React and not vue tho, but the issue seems similar to the one we're having): https://github.com/apollographql/apollo-client/issues/9354 more specifically, the following comments: 1. This comment provides a workaround https://github.com/apollographql/apollo-client/issues/9354#issuecomment-1234952933 2. This comment seems to provide a reason for this issue https://github.com/apollographql/apollo-client/issues/9354#issuecomment-1423166206
Author
Collaborator

For me its still like this - on Laptop (Ubuntu+Firefox) and Smartphone(Android+Firefox).

For me its still like this - on Laptop (Ubuntu+Firefox) and Smartphone(Android+Firefox).
Owner

Just managed to reproduce this issue on a vanilla Mobilizon 4.1.0, so it's definetly upstream relevant.

Just managed to reproduce this issue on a vanilla Mobilizon 4.1.0, so it's definetly upstream relevant.
Owner

Created an issue upstream, as I'm able to reproduce on their flagship instance https://mobilizon.fr

https://framagit.org/framasoft/mobilizon/-/issues/1430

Created an issue upstream, as I'm able to reproduce on their flagship instance https://mobilizon.fr https://framagit.org/framasoft/mobilizon/-/issues/1430

Still problematic on new version 4 (4th of March)

Still problematic on new version 4 (4th of March)
Owner

Should be fixed now by adc61a9234

Should be fixed now by adc61a92348a3d7093fbe9bab948af13e8ea752c
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: potsda.mn/mobilizon#44
No description provided.