Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Reducer

Register a reducer, we must register via etc/config.js file:

import HelloWorld from "../view/reducer";
import ModuleConfigAbstract from "../../ModuleConfigAbstract";

class HelloWorldConfig extends ModuleConfigAbstract{
    module = ['helloworld'];
    reducer = { HelloWorld };
}

export default (new HelloWorldConfig());

Exercise:

  • Add new reducer in POS

  • Create menu and component with content “Show Loading” button

  • Use reducer and redux, when click show loading, show small loading to screen, show loading change to hide loading

  • Process when click hide loading

  • No labels