gabrielguerrero / ngrx-traits

NGRX Traits is a library to help you compose and reuse state logic in your angular app. There is two versions, @ngrx-traits/signals supports ngrx-signals, and @ngrx-traits/{core, common} supports ngrx.
MIT License
44 stars 3 forks source link

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

Closed francobasilico closed 2 months ago

francobasilico commented 2 months ago

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