mediawiki-extensions-Popups/resources/ext.popups/boot.js

23 lines
446 B
JavaScript
Raw Normal View History

( function ( mw, rx ) {
/**
* Example reducer
*
* @param {Object} state global state before action
* @param {Object} action action that was performed
* @return {Object} global state after action
*/
function rootReducer( state, action ) {
/* jshint unused: false */
return state;
}
mw.requestIdleCallback( function () {
rx.createStore(
rootReducer,
rx.applyMiddleware( rx.thunk )
);
} );
}( mediaWiki, Redux ) );