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

[RFR] Fix Review accept / reject in demo #3473

Merged
merged 4 commits into from
Jul 31, 2019
Merged

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Jul 30, 2019

  • Fix AcceptButton side effects (useMutation requires that side effects are passed as a function)
  • Fix BulkAcceptButton side effects
  • Fix BulkRejectButton side effects
  • Fix race condition in useMutation and useQuery (a too drastic caching strategy caused callbacks formed when isOptimistic was true not to be updated)

Object side effects no longer work with useMutation
because the caching strategy of useMutation was too drastic, it missed changes in isOptimistic and produced callbacks that were not informed that the optimistic mode is disabled
@fzaninotto fzaninotto added this to the 3.0.0 milestone Jul 30, 2019
@fzaninotto fzaninotto changed the title RFR Fix AcceptButton in demo [WIP] Fix Review accept / reject in demo Jul 30, 2019
@fzaninotto fzaninotto changed the title [WIP] Fix Review accept / reject in demo [RFR] Fix Review accept / reject in demo Jul 31, 2019
@fzaninotto
Copy link
Member Author

Switching to RFR

@djhi djhi merged commit 32d2b2a into next Jul 31, 2019
@djhi djhi deleted the Fix-race-condition-in-useMutation branch July 31, 2019 07:54
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

Successfully merging this pull request may close these issues.

None yet

2 participants