/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const createStore = require("resource://devtools/client/shared/redux/create-store.js"); const {
combineReducers,
} = require("resource://devtools/client/shared/vendor/redux.js"); // Reducers which need to be available immediately when the Inspector loads. const reducers = { // Provide a dummy default reducer. // Redux throws an error when calling combineReducers() with an empty object. default: (state = {}) => state,
};
module.exports = inspector => { const store = createStore(createReducer(), { // Enable log middleware in tests
shouldLog: true, // Pass the client inspector instance so thunks (dispatched functions) // can access it from their arguments
thunkOptions: { inspector },
});
// Map of registered reducers loaded on-demand.
store.laterReducers = {};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.