You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2022. It is now read-only.
@@ -123,10 +113,9 @@ export function createStore(name, state = {}, reducer=defaultReducer) {
123
113
124
114
/**
125
115
* Returns a store instance based on its name
126
-
* @callback {String} name - The name of the wanted store
116
+
* @name {String} name - The name of the wanted store
127
117
* @returns {StoreInterface} the store instance
128
118
*/
129
-
130
119
exportfunctiongetStoreByName(name){
131
120
try{
132
121
returnstores[name].public;
@@ -138,14 +127,9 @@ export function getStoreByName(name) {
138
127
/**
139
128
* Returns a [ state, setState ] pair for the selected store. Can only be called within React Components
140
129
* @param {String|StoreInterface} identifier - The identifier for the wanted store
141
-
* @callback memoFn [state => state] - A memoization function to optimize component rerender. Receive the store state and return a subset of it. The component will only rerender when the subset changes.
130
+
* @param {(state:any) => any} memoFn [state => state] - A memoization function to optimize component rerender. Receive the store state and return a subset of it. The component will only rerender when the subset changes.
0 commit comments