Drop and Replace
What is Drop and Replace?
If fees change and your user operation gets stuck in the mempool, you can use drop and replace to resend the user operation with higher fees.
Here’s a quick example of how to use the useDropAndReplaceUserOperation()
hook to drop and replace a user operation.
You can also build a more complex retry logic in a case you want more control over how many times you want to retry a failed user operation.