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

Actions take a while #36

Open
EpicIbby101 opened this issue Jan 23, 2023 · 4 comments
Open

Actions take a while #36

EpicIbby101 opened this issue Jan 23, 2023 · 4 comments

Comments

@EpicIbby101
Copy link

Hi, I was wondering if someone could clear this up for me.

Some actions take a while to execute and do not become instantly apparent after the auto-reload when doing something

For example:

  • Saving posts requires a few manual refreshes before it is shown that a post is saved
  • When making or deleting a post I sometimes need to refresh more than a few times before anything shows up or disappears
  • Comments take time to show after being posted

Is this normal? I'd assume it takes time for the frontend and the Sanity client to communicate with each other and for Sanity to reflect and confirm these changes.
Or could it potentially be something in my code that I could fix to speed up this process?

@fatihbatu
Copy link

fatihbatu commented Mar 1, 2023

I'm dealing with the same issue here. Did you find any solution for this?

@fatihbatu
Copy link

Just change 'useCdn' to false in client.js it fixes the delay problem

@EpicIbby101
Copy link
Author

I feel like it might be slow communication between the frontend and backend. I've done as you said by changing the 'useCdn', the results show sometimes but then beome slow again.

@K4R7IK
Copy link

K4R7IK commented Jul 9, 2023

@EpicIbby101 I change useCdn to false and the delay was removed. So there might be issue with your database or internet speed too. Although it's a late reply, if you have found the solution then do tell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants