| preferenceSlice.mjs |
Create a slice for a preference. Populated with a set and reset action/reducer
pair and a selectValue selector.
The slice name is only based on the preference.
@param {string} preference - The string path of the preference.
@param {any} fallbackValue - The value to use as fallback.
@param {Function} [transform = value => value] - A transformer for the
preference value, applied before it is stored in the redux store.
@param {object} [extraReducers = {}] - Additional reducers (and actions) to
add to the slice.
@returns {object} Redux slice for the preference.
|
4589 |
| store.mjs |
Mixin to add redux store state change handling. Will leak the listener,
unless dispose is called.
Selectors are configured by the element extending this. Updates are detected
by only passing the current state to selectors, so for selectors that need
external arguments the update detection may be incorrect.
@mixin
@param {Function} superClass - The super class this mixin extends, usually
HTMLElement or one of its decendants.
@returns {Function}
|
4049 |
| xulStoreSlice.mjs |
Create a slice for a XULStore attribute. Has a set reducer/action pair and
a selectValue selector.
The slice is named to be unique based on the three input parameters.
@param {string} documentLocation - Location of the document in the XUL store
or a document identifier from XULStoreUtils.
@param {string} elementId - ID of the element in the XUL store.
@param {string} attribute - Name of the attribute in the XUL store.
@returns {object} A redux slice for a specific attribute in the xul store.
|
1500 |