A smidge of Alpine #19
lrljoe
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For front-end buttons where there's a rate limit on the server side that has been reached, I have taken to passing the expiry time into an Alpine variable, and using that to disable the relevant button on the frontend.
This is mostly just to cut down on the click happy individuals who will keep clicking (thus polling the cache), but obviously it also allows for a rolling countdown without any server side calls.
If anyone's interested then I'm happy to share the initial approach.
Beta Was this translation helpful? Give feedback.
All reactions