Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent multiple entry? #55

Open
rajababu3 opened this issue May 29, 2020 · 9 comments
Open

How to prevent multiple entry? #55

rajababu3 opened this issue May 29, 2020 · 9 comments

Comments

@rajababu3
Copy link

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
Copy link
Author

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

@HathTech
Copy link

HathTech commented Jun 3, 2020

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

@rajababu3
Copy link
Author

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.

@jacobaraujo7
Copy link
Collaborator

I'm uploading an update, please test 1.2.2

@Bwolfs2
Copy link
Contributor

Bwolfs2 commented Jul 23, 2020

The @jacobaraujo7 solution work @rajababu3 ?

@rajababu3
Copy link
Author

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

@rajababu3
Copy link
Author

I tested the new release. Problem persists

@rajababu3 rajababu3 reopened this Aug 6, 2020
@Bwolfs2
Copy link
Contributor

Bwolfs2 commented Aug 7, 2020

@jacobaraujo7

@ramsmart-inno
Copy link

did this issue is solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants