PHP Classes

File: src/data/jobs/index.ts

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/data/jobs/index.ts   Download  
File: src/data/jobs/index.ts
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 1 year ago
Size: 618 bytes


Class file image Download
/** * External dependencies. */ import { createReduxStore } from '@wordpress/data'; /** * Internal dependencies. */ import reducer from './reducer'; import actions from './actions'; import selectors from './selectors'; import controls from './controls'; import resolvers from './resolvers'; import { IJobs } from './interfaces'; export const jobDefaultState: IJobs = { jobs: [], loadingJobs: true, totalPage: 0, total: 0, filters: {}, }; const jobStore = createReduxStore('wp-react/jobs', { reducer, actions, selectors, controls, resolvers, }); export default jobStore;