Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Andy-set-studio/vanilla-js-state-management
/ functions
Functions
17 in github.com/Andy-set-studio/vanilla-js-state-management
⨍
Functions
17
◇
Types & classes
12
↓ 4 callers
Method
render
* React to state changes and render the component's HTML * * @returns {void}
src/js/components/list.js:19
↓ 2 callers
Method
commit
* 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 callers
Method
dispatch
* 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 callers
Method
publish
* 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 callers
Method
subscribe
* 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
Function
addItem
(context, payload)
src/js/store/actions.js:2
Function
addItem
(state, payload)
src/js/store/mutations.js:2
Function
clearItem
(context, payload)
src/js/store/actions.js:5
Function
clearItem
(state, payload)
src/js/store/mutations.js:7
Method
constructor
()
src/js/components/count.js:5
Method
constructor
()
src/js/components/list.js:7
Method
constructor
()
src/js/components/status.js:5
Method
constructor
()
src/js/lib/pubsub.js:2
Method
constructor
(props = {})
src/js/lib/component.js:5
Method
constructor
(params)
src/js/store/store.js:4
Method
render
* React to state changes and render the component's HTML * * @returns {void}
src/js/components/count.js:17
Method
render
* React to state changes and render the component's HTML * * @returns {void}
src/js/components/status.js:17