MCPcopy Create free account

hub / github.com/Andy-set-studio/vanilla-js-state-management / functions

Functions17 in github.com/Andy-set-studio/vanilla-js-state-management

↓ 4 callersMethodrender
* React to state changes and render the component's HTML * * @returns {void}
src/js/components/list.js:19
↓ 2 callersMethodcommit
* Look for a mutation and modify the state object * if that mutation exists by calling it * * @param {string} mutationKey * @para
src/js/store/store.js:100
↓ 2 callersMethoddispatch
* A dispatcher for actions that looks in the actions * collection and runs the action if it can find it * * @param {string} actionKey
src/js/store/store.js:65
↓ 1 callersMethodpublish
* If the passed event has callbacks attached to it, loop through each one * and call it * * @param {string} event * @param {object
src/js/lib/pubsub.js:39
↓ 1 callersMethodsubscribe
* Either create a new event instance for passed `event` name * or push a new callback into the existing collection * * @param {string}
src/js/lib/pubsub.js:15
FunctionaddItem
(context, payload)
src/js/store/actions.js:2
FunctionaddItem
(state, payload)
src/js/store/mutations.js:2
FunctionclearItem
(context, payload)
src/js/store/actions.js:5
FunctionclearItem
(state, payload)
src/js/store/mutations.js:7
Methodconstructor
()
src/js/components/count.js:5
Methodconstructor
()
src/js/components/list.js:7
Methodconstructor
()
src/js/components/status.js:5
Methodconstructor
()
src/js/lib/pubsub.js:2
Methodconstructor
(props = {})
src/js/lib/component.js:5
Methodconstructor
(params)
src/js/store/store.js:4
Methodrender
* React to state changes and render the component's HTML * * @returns {void}
src/js/components/count.js:17
Methodrender
* React to state changes and render the component's HTML * * @returns {void}
src/js/components/status.js:17