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

WithCalls - OnSuccess callback throws exception when trying to update the store #65

Closed
francobasilico opened this issue May 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@francobasilico
Copy link
Collaborator

francobasilico commented May 7, 2024

When trying to update the store on my OnSuccess, I get a type error

onSuccess: (result) => {
          if (result.data) {
            patchState(store, { invoice: result.data.invoice });
          }
        },

image

@francobasilico francobasilico added the bug Something isn't working label May 7, 2024
gabrielguerrero pushed a commit that referenced this issue May 7, 2024
…nside onSuccess

Fixed bug using patchState inside onSuccess, and added typedConfigCall helper method to get the
result param in onSuccess typed

Fixes #64 #65
gabrielguerrero pushed a commit that referenced this issue May 7, 2024
…nside onSuccess

Fixed bug using patchState inside onSuccess, and added typedConfigCall helper method to get the
result param in onSuccess typed

Fixes #64 #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants