PrimalHQ / primal-web-app

Primal's web app for Nostr, as experienced on primal.net.
https://primal.net
MIT License
200 stars 39 forks source link

No response sometimes when clicking Post #30

Open OrigiSize opened 1 year ago

OrigiSize commented 1 year ago

Describe the bug

No response sometimes when clicking Post

Steps to reproduce

Compose a reply to a note or DM and click post.

Expected behavior

Some graphical indication that the post is being sent, perhaps the post button should change state or a spinner should show.

Environment

Using Firefox with uBlock Origin (haven't tried it without yet)

OrigiSize commented 1 year ago

uBlock Origin doesn't seem to be blocking anything bought doubleclick.net and has a yellow on youtube.

Just happened again. I didn't change connections since the last reload. Clicked Post and waited many seconds before clicking Home at which time I saw the "Message noted successfully" toast.

Being careful not to reload the page, I noticed many seconds of delay rendering Messages or Notifications. As I was composing this, the web app seemed to catch up and now I can click between Messages/Notifications with only a couple seconds of spinner.

I think one solution can be a superficial spinner or button state change that shortcuts whatever the big delay loop is.

OrigiSize commented 1 year ago

Another potential solution is an indication that the web app is caught up with all tasks.