Skip to content
Discussion options

You must be logged in to vote

to avoid a flashing loading indicator, I ended up using a hook for that.
You can find it here: https://usehooks.com/usethrottle

	const { isLoading: isLoadingOG, ...rest } = useMutation(/* .... */)
	const isLoading = useThrottle(isLoadingOG, 500); // <---- like so.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PixeledCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants