mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-04 03:58:41 +00:00
23 lines
446 B
JavaScript
23 lines
446 B
JavaScript
|
( 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 ) );
|