0

Is there a way to override default reducers in a Spartacus project?

For example i want to change the way the cart state is returned for certain cart action.

And is it possible to add some fields to the state ?

  • Did you have a look at the following thread, you might find it useful https://stackoverflow.com/questions/65427913/extend-spartacus-ngrx-store-with-additional-data – L Tiger Jun 08 '21 at 15:03
  • You can use type augmentations to extend the built-in spartacus models https://sap.github.io/spartacus-docs/type-augmentation. Also, could you be more specific about your use case? – L Tiger Jun 08 '21 at 16:01

0 Answers0