hasura_connect icon indicating copy to clipboard operation
hasura_connect copied to clipboard

How to prevent multiple entry?

Open rajababu3 opened this issue 4 years ago • 9 comments

I am doing a mutation and data is being inserted more than once. I have used tryAgain: false. Yet the problem persists.

Can anyone guide me here?

rajababu3 avatar May 29 '20 01:05 rajababu3

Hey @jacobaraujo7 Any help on this? My app is in production.

rajababu3 avatar Jun 01 '20 09:06 rajababu3

Hey any update on this? My app is in production and it's getting worse now.

HathTech avatar Jun 03 '20 14:06 HathTech

The issue is here I believe

var mutationCache = await _localStorageMutation.getAll(); for (var key in mutationCache.keys) { await _sendPost(mutationCache[key], key); }

It's getting called multiple times so is the _sendPost.

I don't know why you are doing it like that.

rajababu3 avatar Jun 04 '20 02:06 rajababu3

I'm uploading an update, please test 1.2.2

jacobaraujo7 avatar Jun 10 '20 13:06 jacobaraujo7

The @jacobaraujo7 solution work @rajababu3 ?

Bwolfs2 avatar Jul 23 '20 20:07 Bwolfs2

I haven't tried it. I changed some code in my fork and using that. I believe @jacobaraujo7 will work.

rajababu3 avatar Jul 24 '20 02:07 rajababu3

I tested the new release. Problem persists

rajababu3 avatar Aug 06 '20 02:08 rajababu3

@jacobaraujo7

Bwolfs2 avatar Aug 07 '20 03:08 Bwolfs2

did this issue is solved?

ramsmart-inno avatar Aug 05 '21 08:08 ramsmart-inno