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