mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Begin work on infinite beer scroll
This commit is contained in:
@@ -20,8 +20,8 @@ const BeerPostLikeButton: FC<{
|
||||
try {
|
||||
setLoading(true);
|
||||
await sendLikeRequest(beerPostId);
|
||||
await mutateCount();
|
||||
await mutateLikeStatus();
|
||||
|
||||
await Promise.all([mutateCount(), mutateLikeStatus()]);
|
||||
setLoading(false);
|
||||
} catch (e) {
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user