Add retry
parent
bd79ce7ea0
commit
7bba213e1a
|
@ -57,6 +57,7 @@ export function useUpsertNuxMutation() {
|
||||||
const agent = useAgent()
|
const agent = useAgent()
|
||||||
|
|
||||||
return useMutation({
|
return useMutation({
|
||||||
|
retry: 3,
|
||||||
mutationFn: async (nux: AppNux) => {
|
mutationFn: async (nux: AppNux) => {
|
||||||
await agent.bskyAppUpsertNux(serializeAppNux(nux))
|
await agent.bskyAppUpsertNux(serializeAppNux(nux))
|
||||||
// triggers a refetch
|
// triggers a refetch
|
||||||
|
@ -72,6 +73,7 @@ export function useRemoveNuxsMutation() {
|
||||||
const agent = useAgent()
|
const agent = useAgent()
|
||||||
|
|
||||||
return useMutation({
|
return useMutation({
|
||||||
|
retry: 3,
|
||||||
mutationFn: async (ids: string[]) => {
|
mutationFn: async (ids: string[]) => {
|
||||||
await agent.bskyAppRemoveNuxs(ids)
|
await agent.bskyAppRemoveNuxs(ids)
|
||||||
// triggers a refetch
|
// triggers a refetch
|
||||||
|
|
Loading…
Reference in New Issue