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

The package breaks when 2 requests are sent at a time #74

Open
rabinacharya11 opened this issue Nov 15, 2022 · 4 comments
Open

The package breaks when 2 requests are sent at a time #74

rabinacharya11 opened this issue Nov 15, 2022 · 4 comments

Comments

@rabinacharya11
Copy link

The package will not work the way it is expected to work when 2 request. for eg :
likePost()
refreshFeeds()

are sent

@zmtzawqlp
Copy link
Member

a simple runnable demo will better

@rabinacharya11
Copy link
Author

I custom-coded the features I wanted. I didn't have a demo video

but here is how it breaks :

LikeButton( onTap: onLikeButtonTapped, ),

` Future<bool> onLikeButtonTapped(bool isLiked) async{
/// send your request here
// final bool success= await sendRequest(); 

///. When i added another request in this function whole lists of the posts started acting wried!

/// if failed, you can do nothing
// return success? !isLiked:isLiked;

return !isLiked;

}`

@zmtzawqlp
Copy link
Member

if your request is slow, maybe you should not await it

@rabinacharya11
Copy link
Author

That's when the package gives a lot of errors

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

2 participants