Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Menu extends React.PureComponent {
- static fetchData({ store, query, params }) {
- return store.dispatch(actions.loadMenu())
- }
- componentDidMount() {
- this.props.loadStock()
- if (this.props.boxPrices.size === 0) {
- this.props.loadBoxPrices()
- }
- if (this.props.menu.size === 0) {
- this.props.loadMenu()
- }
- }
- render() {
- ...
- }
- }
Add Comment
Please, Sign In to add comment